quickjs-emscripten-sync
quickjs-emscripten-sync copied to clipboard
Provides a way to sync objects between browser and QuickJS
`quickjs-emscripten` supports a second options param to `evalCode` of type `ModuleEvalOptions` https://github.com/justjake/quickjs-emscripten/tree/main?tab=readme-ov-file#safely-evaluate-javascript-code https://github.com/justjake/quickjs-emscripten/blob/main/doc/quickjs-emscripten/classes/QuickJSWASMModule.md#evalcode Is there a way to specify these options when using `quickjs-emscripten-sync ` ?
I would like to support the resolvePackageJsonExports option in tsconfig
there no need to manually execute executePendingJobs method, in https://github.com/justjake/quickjs-emscripten/?tab=readme-ov-file#promises, the author provide a way that can trigger on the promise is resolved using "promise.settled.then(vm.runtime.executePendingJobs)" ```javascript const vm = QuickJS.newContext()...
``` test.only("Date in array", async () => { const ctx = (await getQuickJS()).newContext(); const arena = new Arena(ctx, { isMarshalable: true }); const scope = { results: [new Date(2022, 7,...
Hello and thanks for creating this library that adds usefull functionality. I'm getting Maximum call stack size exceeded when I call an exposed function ``` const ctx = QuickJS.newContext(); const...
Hi, I have the following code for quickjs-emscripten that handle correctly the interruption: ```js const QuickJS = await getQuickJS(); const runtime = QuickJS.newRuntime(); runtime.setInterruptHandler(shouldInterruptAfterDeadline(Date.now() + 1000)); const vm = runtime.newContext();...