1
0
Fork 0
mirror of synced 2024-08-14 17:42:01 +12:00

Release script

This commit is contained in:
Adria Navarro 2024-02-13 23:49:17 +01:00
parent f733d293da
commit a6c50500fe

View file

@ -178,7 +178,7 @@ export class IsolatedVM implements VM {
const script = this.isolate.compileScriptSync(code)
script.runSync(this.vm, { timeout: this.invocationTimeout })
script.runSync(this.vm, { timeout: this.invocationTimeout, release: true })
// We can't rely on the script run result as it will not work for non-transferable values
const result = this.getFromContext(this.resultKey)