diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-05 18:02:30 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-05 18:03:06 -0800 |
commit | 21cbcab50c52ace791568cb83232f13023eb8f15 (patch) | |
tree | 1e90ff368098dae59cf2ffb6d132562213994ca6 /src | |
parent | 87dade0f40b1bdb72019f9f4c2f0647bc61d210d (diff) |
do not break on call/invoke to undef; fixes #914
Diffstat (limited to 'src')
-rw-r--r-- | src/intertyper.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 6c88e765..2103ecfa 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -677,7 +677,7 @@ function intertyper(data, sidePass, baseLineNums) { item.type = item.tokens[1].text; Types.needAnalysis[item.type] = 0; while (['@', '%'].indexOf(item.tokens[2].text[0]) == -1 && !(item.tokens[2].text in PARSABLE_LLVM_FUNCTIONS) && - item.tokens[2].text != 'null' && item.tokens[2].text != 'asm') { + item.tokens[2].text != 'null' && item.tokens[2].text != 'asm' && item.tokens[2].text != 'undef') { assert(item.tokens[2].text != 'asm', 'Inline assembly cannot be compiled to JavaScript!'); item.tokens.splice(2, 1); } |