ensureBlock on if statements with expression return statements - fixes #764

This commit is contained in:
Sebastian McKenzie
2015-02-14 19:07:23 +11:00
parent 0e1743738e
commit 3649fad485
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
function f() {
if (true) {}
else return f()
}

View File

@@ -0,0 +1,9 @@
"use strict";
function f() {
_function: while (true) {
if (true) {} else {
continue _function;
}
}
}