@forge/isolated-vm
Advanced tools
Comparing version 3.3.9 to 3.3.10-next.0
# @forge/isolated-vm | ||
## 3.3.10-next.0 | ||
### Patch Changes | ||
- 898efdc: Adjusts behaviour of isolate reference API methods | ||
## 3.3.9 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@forge/isolated-vm", | ||
"version": "3.3.9", | ||
"version": "3.3.10-next.0", | ||
"description": "Access to multiple isolates", | ||
@@ -5,0 +5,0 @@ "main": "isolated-vm.js", |
@@ -31,24 +31,4 @@ 'use strict'; | ||
// Repeat but with applySync() | ||
try { | ||
let env = makeIsolate(); | ||
let script = await env.isolate.compileScript('new '+ function() { | ||
// Now we're inside the isolate | ||
global.sabotage = function() { | ||
let stash = []; | ||
for (;;) { | ||
stash.push({}); | ||
} | ||
} | ||
let ref = context.global.getSync('sabotage'); | ||
ref.applySync(undefined, []); | ||
}); | ||
await script.run(env.context); | ||
console.log('fail2'); | ||
} catch (err) { | ||
if (!/disposed/.test(err)) throw err; | ||
} | ||
console.log('pass'); | ||
}()).catch(console.error); |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
489895
145
2579
1