aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 9ee93673..561ee826 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -30,7 +30,7 @@ Module.callMain = function callMain(args) {
catch(e) {
if (e.name == 'ExitStatus') {
return e.status;
- } else {
+ } else if (e !== 'SimulateInfiniteLoop') {
throw e;
}
} finally {