aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-17 18:22:06 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-17 18:22:06 -0700
commit13533862b5ccd626f37612d16e69e92c20bc2665 (patch)
tree665f0d453ad62eb010ca14f9e1b0a1e4b26923d5
parent4197860af16ed859e6a7d63045f4d4bf5305bcdb (diff)
abort compilation in asm.js when we see setjmp
-rw-r--r--src/jsifier.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 38029377..00af7f50 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -724,6 +724,7 @@ function JSify(data, functionsOnly, givenFunctions) {
ret += indent + 'label = ' + getLabelId(block.entries[0]) + '; ' + (SHOW_LABELS ? '/* ' + getOriginalLabelId(block.entries[0]) + ' */' : '') + '\n';
} // otherwise, should have been set before!
if (func.setjmpTable) {
+ assert(!ASM_JS, 'asm.js mode does not support setjmp yet');
var setjmpTable = {};
ret += indent + 'var mySetjmpIds = {};\n';
ret += indent + 'var setjmpTable = {';