quickjs-emscripten icon indicating copy to clipboard operation
quickjs-emscripten copied to clipboard

Safely execute untrusted Javascript in your Javascript, and execute synchronous code that uses async functions

Results 45 quickjs-emscripten issues
Sort by recently updated
recently updated
newest added
trafficstars

How would I go about getting memory accurate readings? When doing ```js (async () => { let QJS = await QuickJS.getQuickJS(); let rt = QJS.newRuntime(); let memoryLimit = 1024 *...

Bumps the npm_and_yarn group with 1 update in the / directory: [postcss](https://github.com/postcss/postcss). Updates `postcss` from 8.4.45 to 8.4.47 Release notes Sourced from postcss's releases. 8.4.47 Removed debug code. 8.4.46 Fixed...

dependencies

- Enable `malloc_usable_size` and other previously linux-only features that Emscripten can actually emulate. This should improve memory accounting. - Breaking: `runtime.computeMemoryUsage()` now directly returns a host Javascript object, instead of...

Currently when we try to execute any code which has `\- and /u ` combination with the regex, it causes issues within the sandbox. Similar change has been made to...

When disposed, delete the function from the internal map and add the function id to a "freelist" that will be re-used for the next function created. Only increment ID if...

After running a program in QuickJS for a long time, eventually it crashes with this error: `QuickJSContext had no callback with id -32768`. ![Image](https://github.com/user-attachments/assets/1f5607c0-e615-43ac-af01-a3aa7635f868) -32768 is the minimum int16 value....

Testing code as below: ,and the error tips: What possible reasons could cause this?

Hi there, I have been going trough the docs and trough issues to get some code to work. The code below is the closest that i could get: ``` import...

I'm trying to use quickjs-emscripten inside a Service Worker that is written as an ECMAScript module (ESM). However, it fails to execute due to the use of dynamic import() inside...

Currently the quickjs iterator does not support generator function return values, as it assumes when `done === true` then `value === undefined`. This is not the case for generator-derived iterators...