diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-06 10:54:10 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-06 11:05:05 -0700 |
commit | 0ff7f8dcd655e84eb7c750cff927b11231b61589 (patch) | |
tree | 0e5835cec2acaa4ce0bf7c760c36158350dd55bc /tools/js-optimizer.js | |
parent | e9624929302ad7f10d38a8de21dd0d7f5aa1f675 (diff) |
fix inline js in x86 target, enable testing sans validation for inline js in asm.js, fix unistd tests that use inline js to not validate, and make js optimizer more tolerant of inline js in asm code; fixes #1597
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r-- | tools/js-optimizer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index b42164f9..21b19fd3 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -1588,7 +1588,7 @@ function normalizeAsm(func) { var name = v[0]; var value = v[1]; if (!(name in data.vars)) { - assert(value[0] === 'num' || (value[0] === 'unary-prefix' && value[2][0] === 'num')); // must be valid coercion no-op + if (!(value[0] === 'num' || (value[0] === 'unary-prefix' && value[2][0] === 'num'))) break outer; // must be valid coercion no-op data.vars[name] = detectAsmCoercion(value); v.length = 1; // make an un-assigning var } else { |