isolated-vm icon indicating copy to clipboard operation
isolated-vm copied to clipboard

Secure & isolated JS environments for nodejs

Results 70 isolated-vm issues
Sort by recently updated
recently updated
newest added

Hey there, So i made this script to show off the problem: ``` const ivm = require("isolated-vm"); const isolate = new ivm.Isolate({ memoryLimit: 128 }); const context = isolate.createContextSync(); const...

We have a scenario in which we want to run multiple context in parallel in single isolate. Currently the poc that we did suggests that multiple context runs in a...

Currently we do get isolate level metrics (getHeapStatisticsSync) . Do we have a way in which we can we context level metrics ?

Issue: In case we pass a reference to an async function that immediately rejects, then that error is not propagated to the isolated vm but instead is thrown in the...

Good afternoon! Please, could you add at least one example to the README file? Specifically, I would like to see how to make a two-way function between the main and...

Thanks for creating this amazing library. I wonder how we can disable completely code generation from strings? It's disabled by default here: https://github.com/laverdet/isolated-vm/blob/19b3624b962c13526f78949fd8a6391895a9463d/src/isolate/environment.cc#L482 But then is allowed in the `CodeGenCallback`:...

Hi there, Since the fix for #302 instead of main thread deadlocks in our application we've been observing a slow stream of isolate deadlocks, reproducible in the application by sending...

## TL/DR Current behavior of promises detached from the main "thread" of function call (via Reference.apply) inside isolate causes two very non-intuitive problems: 1) `Reference.apply` call actually exceed the given...

```js const ivm = require('isolated-vm'); const isolate = new ivm.Isolate(); const ctx = isolate.createContextSync(); function load() { return ctx.eval(` const u8 = new Uint8Array([0,97,115,109,1,0,0,0,1,7,1,96,2,127,127,1,127,3,2,1,0,5,3,1,0,17,7,16,2,6,109,101,109,111,114,121,2,0,3,97,100,100,0,0,10,9,1,7,0,32,0,32,1,106,11,11,10,1,0,65,128,128,192,0,11,1,4,0,131,1,9,112,114,111,100,117,99,101,114,115,2,8,108,97,110,103,117,97,103,101,1,4,82,117,115,116,0,12,112,114,111,99,101,115,115,101,100,45,98,121,3,5,114,117,115,116,99,37,49,46,54,48,46,48,45,110,105,103,104,116,108,121,32,40,50,50,101,52,57,49,97,99,55,32,50,48,50,50,45,48,49,45,49,51,41,6,119,97,108,114,117,115,6,48,46,49,57,46,48,12,119,97,115,109,45,98,105,110,100,103,101,110,18,48,46,50,46,56,48,32,40,52,99,97,97,57,56,49,54,53,41]); WebAssembly.instantiate(u8).then(x => x.instance.exports.add(5, 6)); `, {...

Is there a way to get back a function reference as an argument to a `Callback`? (Without exposing the `ivm` module itself to the isolate which is insecure)