diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-05 18:02:30 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-07 16:35:07 -0800 |
commit | 8c9a37a40a164dba330390af2eabf5ad05625001 (patch) | |
tree | 8b445145fcfb3a0d5d8cd7f2e9f12c7fa39ec11e /src | |
parent | f25b794a26c6870318ffe6103113ee50521e728d (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); } |