diff options
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/postamble.js b/src/postamble.js index cd892733..62edeeb6 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -96,6 +96,7 @@ Module['callMain'] = Module.callMain = function callMain(args) { Module['noExitRuntime'] = true; return; } else { + if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]); throw e; } } finally { |