You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace @tootallnate/quickjs-emscripten with quickjs-wasi
Migrate degenerator, pac-resolver, and pac-proxy-agent from
@tootallnate/quickjs-emscripten to quickjs-wasi, a lighter-weight
QuickJS WASM runtime built on quickjs-ng with WASI reactor mode.
Key changes:
- degenerator: compile() now takes a QuickJS instance directly instead
of QuickJSWASMModule (no more qjs.newContext() — the QuickJS instance
IS the context). Host callbacks receive _this as first arg.
resolvePromise() returns {value}|{error} instead of VmCallResult.
Promise bridging calls executePendingJobs() after resolve/reject.
- pac-resolver: createPacResolver() takes QuickJS instead of
QuickJSWASMModule. Updated workspace dependency on degenerator.
- pac-proxy-agent: QuickJS.create() replaces getQuickJS(). quickjs-wasi
is now a runtime dependency (replaces @tootallnate/quickjs-emscripten).
Updated workspace dependency on pac-resolver.
- Tests: Updated error message assertion for quickjs-ng which formats
'process is not defined' without quotes around the identifier.
0 commit comments