Use a class to hold state for Rust GbtGenerator

This commit is contained in:
junderw
2023-06-24 23:05:43 -07:00
committed by Mononaut
parent 46fb6a68eb
commit 6e3b57d5fc
6 changed files with 126 additions and 46 deletions

View File

@@ -252,8 +252,7 @@ if (!nativeBinding) {
throw new Error(`Failed to load native binding`)
}
const { make, update, GbtResult } = nativeBinding
const { GbtGenerator, GbtResult } = nativeBinding
module.exports.make = make
module.exports.update = update
module.exports.GbtGenerator = GbtGenerator
module.exports.GbtResult = GbtResult