aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-20 16:18:19 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-20 16:18:19 -0700
commite7684016a014cd17ea9525bf8ba8909464e052eb (patch)
tree100be7ef27b0e384e7e4293585a35ee324e5846d /src/postamble.js
parent22e4c333a7b17ba2e909b9118ef5fb6e4d0f5221 (diff)
do not show the simulate-infinite-loop exception
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 {