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.
19 lines (15 loc) • 360 B
text/typescript
import { DoublePublicKey } from '../keys/doublePublicKey'
const doIt = async () => {
}
test('GC', async () => {
if (typeof global.gc !== 'function') {
return
}
// to visually see that the finalizer is called,
// add console.log in the finalizer
new DoublePublicKey()
;(global as any).gc()
await new Promise(r =>
setImmediate(r)
)
})