isolated-vm
isolated-vm copied to clipboard
Secure & isolated JS environments for nodejs
**nodeJS version:** 20.10.0 (running inside Docker) **isolated-vm version:** 5.0.1 I'm trying to pass non-primitive values (object literals and arrays) to an isolate, but the docs are pretty unclear and sometimes...
This is a bit of an edge case, but we use yarn as our package manager, and it annoyingly has this code in it: https://github.com/yarnpkg/berry/blob/9c3dc22b7e3c2a2c0782ee1222b4cf9ac6a2846f/packages/plugin-npm/sources/NpmSemverResolver.ts#L144-L155 Basically it will always add...
I'm having some problems running isolated-vm inside a vitest test after upgrading to node 20. With node 18.x it works well, after switching to node v20 I have a **segmentation...
In 478815b5dab8c1a7d0fa505eed005c2465440810 the return type of `IsolateEnvironment::GetCurrent()` was changed from a pointer to an environment to a reference to an environment, with the reasoning that the return value is always...
I am trying to create an async function in unsafe JS that can invoke an async function and return a value. This code can call the async function "test" from...
I rebuilt my docker container and suddenly I am seeing this error: ``` Error: Error relocating /build/node_modules/isolated-vm/out/isolated_vm.node: _ZNK2v810StackFrame11GetLocationEv: symbol not found at Object.Module._extensions..node (node:internal/modules/cjs/loader:1282:18) at Module.load (node:internal/modules/cjs/loader:1076:32) at Function.Module._load (node:internal/modules/cjs/loader:911:12)...
Using the test code from https://github.com/laverdet/isolated-vm/blob/main/tests/catastrophic-error.js#L14, I'm testing as to the behaviour of OOM conditions. However, when running the following (e.g. just with `node example.mjs`), the `memorySize` limit isn't applied...
Hi, With a simple code of: `new Promise(() => { }).then(() => { throw new Error('Swallowed error') });` a user can fire off a Promise, throw an error inside the...
For me, the following code hangs the outer node process in 60% of cases. In other cases, it finishes with a top-level error about the unhandled promise. By slightly modifying...
- I have read the [Frequently Asked Question](https://github.com/laverdet/isolated-vm?tab=readme-ov-file#frequently-asked-question) in the README. My question is not the Frequently Asked Question. - JavaScript includes a `setTimeout` function: no - Functions are a...