Skip to content

Commit 91a245c

Browse files
author
Anthony Pesch
committed
Convert threwValue check to boolean expression
1 parent 3ba500f commit 91a245c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ function JSify(data, functionsOnly, givenFunctions) {
14881488
if (ASM_JS && funcData.setjmpTable) {
14891489
// check if a longjmp was done. If a setjmp happened, check if ours. If ours, go to -111 to handle it.
14901490
// otherwise, just return - the call to us must also have been an invoke, so the setjmp propagates that way
1491-
ret += '; if (((__THREW__|0) != 0) & (threwValue|0)) { setjmpLabel = ' + asmCoercion('_testSetjmp(' + makeGetValue('__THREW__', 0, 'i32') + ', setjmpTable)', 'i32') + '; if ((setjmpLabel|0) > 0) { label = -1111; break } else return ' + (funcData.returnType != 'void' ? asmCoercion('0', funcData.returnType) : '') + ' } __THREW__ = threwValue = 0;\n';
1491+
ret += '; if (((__THREW__|0) != 0) & ((threwValue|0) !== 0)) { setjmpLabel = ' + asmCoercion('_testSetjmp(' + makeGetValue('__THREW__', 0, 'i32') + ', setjmpTable)', 'i32') + '; if ((setjmpLabel|0) > 0) { label = -1111; break } else return ' + (funcData.returnType != 'void' ? asmCoercion('0', funcData.returnType) : '') + ' } __THREW__ = threwValue = 0;\n';
14921492
}
14931493

14941494
return ret;

0 commit comments

Comments
 (0)