A typescript package to execute JavaScript and TypeScript code in a webassembly quickjs sandbox
First of all, thank you for the version 2.0 ! **Describe the bug** Error running the [basic](https://github.com/sebastianwessel/quickjs/blob/v2.0.0/example/basic/index.ts) example in Node.js and Deno, while Bun runs that example OK. Versions tested: * sebastianwessel/quickjs 2.0.0 * Bun 1.2.4 - OK * Node.js 22.14.0 - Error * Node.js 20.18.1 - Error * Deno 2.2.2 - Error Node error output: ``` wasm://wasm/001d15c2:1 RangeError: Maximum call stack size exceeded at wasm://wasm/001d15c2:wasm-function[140]:0x5e8e at wasm://wasm/001d15c2:wasm-function[472]:0x23156 at wasm://wasm/001d15c2:wasm-function[242]:0x14447 at wasm://wasm/001d15c2:wasm-function[303]:0x1a535 at wasm://wasm/001d15c2:wasm-function[303]:0x1a54e at wasm://wasm/001d15c2:wasm-function[303]:0x1a54e at wasm://wasm/001d15c2:wasm-function[303]:0x1a54e at wasm://wasm/001d15c2:wasm-function[303]:0x1a54e at wasm://wasm/001d15c2:wasm-function[303]:0x1a54e at wasm://wasm/001d15c2:wasm-function[303]:0x1a54e Node.js v22.14.0 ``` Deno error output: ``` error: Uncaught (in promise) RangeError: Maximum call stack size exceeded at <anonymous> (wasm://wasm/001d15c2:1:28720) at <anonymous> (wasm://wasm/001d15c2:1:275940) at <anonymous> (wasm://wasm/001d15c2:1:347137) at <anonymous> (wasm://wasm/001d15c2:1:213651) at <anonymous> (wasm://wasm/001d15c2:1:48751) at <anonymous> (wasm://wasm/001d15c2:1:15390) at <anonymous> (wasm://wasm/001d15c2:1:7253) at <anonymous> (wasm://wasm/001d15c2:1:3833) at <anonymous> (wasm://wasm/001d15c2:1:145574) at <anonymous> (wasm://wasm/001d15c2:1:83016) ``` **To Reproduce** Steps to reproduce the behavior: ```sh mkdir reproduce-error cd reproduce-error bun init --yes bun add @sebastianwessel/[email protected] bun add @jitl/quickjs-ng-wasmfile-release-sync wget -O index.js https://github.com/sebastianwessel/quickjs/raw/refs/tags/v2.0.0/example/basic/index.ts sed -i.bak 's|../../src/index.js|@sebastianwessel/quickjs|; s/type SandboxOptions,//; s/: SandboxOptions//' index.js # Bun 1.2.4 runs OK bun index.js # Node.js 20.18.1 and 22.14.0 fail node index.js # Deno 2.2.2 fails deno --allow-net --allow-read --allow-sys index.js ``` **Expected behavior** Expected no errors.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by vasilev and has received 2 comments.