navio-blsct
Version:
TypeScript bindings for the `libblsct` library used by the [Navio](https://nav.io/) blockchain to construct confidential transactions based on the BLS12-381 curve.
17 lines (14 loc) • 350 B
text/typescript
import { DoublePublicKey } from '../keys/doublePublicKey'
test('GC', async () => {
if (typeof global.gc !== 'function') {
return
}
// to visually see that the finalizer is called,
// add console.log in the finalizer
var a = new DoublePublicKey()
;a.move()
;(global as any).gc()
await new Promise(r =>
setImmediate(r)
)
})