aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-14 13:21:42 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-14 13:21:42 -0800
commit3cb5ffa5da8700e967812084f126b69873f8c108 (patch)
tree0b1fcfe28db4f4aa71f6dbd58f0592f1c34183c1 /src/parseTools.js
parentedfccbf2708ee4cb5e9cae5a04badf6f2b84b799 (diff)
clear message when exception catching is disabled and an exception is thrown
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 32bf70e9..07e044b9 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1666,6 +1666,10 @@ function makeStructuralAccess(ident, i) {
}
}
+function makeThrow(what) {
+ return 'throw ' + what + (DISABLE_EXCEPTION_CATCHING ? ' + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 to catch."' : '') + ';';
+}
+
// From parseLLVMSegment
function finalizeLLVMParameter(param, noIndexizeFunctions) {
var ret;