aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 408ef6aa..5903a5be 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -482,7 +482,7 @@ function __shutdownRuntime__() {
if (typeof func === 'number') {
func = FUNCTION_TABLE[func];
}
- func(atexit.arg);
+ func(atexit.arg || null);
}
// allow browser to GC, set heaps to null?