diff options
-rw-r--r-- | src/jsifier.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 02459193..2aa65980 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1176,7 +1176,13 @@ function JSify(data, functionsOnly, givenFunctions) { return makeFunctionCall(item.ident, item.params, item.funcData, item.type) + (item.standalone ? ';' : ''); }); - makeFuncLineActor('unreachable', function(item) { return 'throw "Reached an unreachable!"' }); // Original .ll line: ' + item.lineNum + '";' }); + makeFuncLineActor('unreachable', function(item) { + if (ASSERTIONS) { + return 'throw "Reached an unreachable!"'; + } else { + return ';'; + } + }); // Final combiner |