Fix assertion that all switch-cases break.

This commit is contained in:
Ryan Kelly 2014-01-28 17:22:54 +11:00
Родитель 87758abf9f
Коммит 08077d5b5f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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.