Release script

This commit is contained in:
Adria Navarro 2024-02-13 23:49:17 +01:00
parent f733d293da
commit a6c50500fe
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ export class IsolatedVM implements VM {
const script = this.isolate.compileScriptSync(code) 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 // We can't rely on the script run result as it will not work for non-transferable values
const result = this.getFromContext(this.resultKey) const result = this.getFromContext(this.resultKey)