diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-07-22 11:25:35 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-22 11:25:35 (GMT) |
| commit | 4f1f648c3bd36a875501778786bb8d718ab33869 (patch) | |
| tree | 8c53cbb09cfa655d8c23679e72c07fb46290e7a0 /Python/emscripten_syscalls.c | |
| parent | c59a60bdb48120fe7b7ba65507448db358b6671d (diff) | |
| download | cpython-4f1f648c3bd36a875501778786bb8d718ab33869.zip cpython-4f1f648c3bd36a875501778786bb8d718ab33869.tar.gz cpython-4f1f648c3bd36a875501778786bb8d718ab33869.tar.bz2 | |
[3.14] gh-136251: Improvements to WASM demo REPL (GH-136252) (GH-136977)
(cherry picked from commit d1d526afe7ce62c787b150652a2ba136cb949d74)
Co-authored-by: adam j hartz <adam@smatz.net>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Diffstat (limited to 'Python/emscripten_syscalls.c')
| -rw-r--r-- | Python/emscripten_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/emscripten_syscalls.c b/Python/emscripten_syscalls.c index 886262a..d3eedad 100644 --- a/Python/emscripten_syscalls.c +++ b/Python/emscripten_syscalls.c @@ -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, |
