summaryrefslogtreecommitdiffstats
path: root/Python/emscripten_syscalls.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-07-22 11:25:35 (GMT)
committerGitHub <noreply@github.com>2025-07-22 11:25:35 (GMT)
commit4f1f648c3bd36a875501778786bb8d718ab33869 (patch)
tree8c53cbb09cfa655d8c23679e72c07fb46290e7a0 /Python/emscripten_syscalls.c
parentc59a60bdb48120fe7b7ba65507448db358b6671d (diff)
downloadcpython-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.c2
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,