mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
gh-136251: Improvements to WASM demo REPL (GH-136252)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
This commit is contained in:
parent
9c7b2af73d
commit
d1d526afe7
7 changed files with 327 additions and 56 deletions
|
|
@ -100,7 +100,7 @@ EM_JS_MACROS(void, _emscripten_promising_main_js, (void), {
|
|||
return;
|
||||
}
|
||||
const origResolveGlobalSymbol = resolveGlobalSymbol;
|
||||
if (!Module.onExit && process?.exit) {
|
||||
if (!Module.onExit && globalThis?.process?.exit) {
|
||||
Module.onExit = (code) => process.exit(code);
|
||||
}
|
||||
// * wrap the main symbol with WebAssembly.promising,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue