aboutsummaryrefslogtreecommitdiff
path: root/tools/js-optimizer.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r--tools/js-optimizer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index 21d521fd..a67af7d0 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -2486,7 +2486,7 @@ function registerizeHarder(ast) {
for (var j = 0; j < node[2][i][1].length; j++) {
buildFlowGraph(node[2][i][1][j]);
}
- if (currEntryJunction !== null, 'switch case body did not break');
+ assert(currEntryJunction === null, 'switch case body did not break');
}
// If there was no default case, we also need an empty block
// linking straight from the test evaluation to the exit.