Index: test/mjsunit/harmony/block-for-sloppy.js |
diff --git a/test/mjsunit/harmony/block-for-sloppy.js b/test/mjsunit/harmony/block-for-sloppy.js |
index eee8e0b5cdc73198914debb77e9ab2b395b8c58f..e9e960504bfeb43341df00b4aa9a881283dd2ea3 100644 |
--- a/test/mjsunit/harmony/block-for-sloppy.js |
+++ b/test/mjsunit/harmony/block-for-sloppy.js |
@@ -26,6 +26,7 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// Flags: --no-legacy-const --harmony-sloppy --harmony-sloppy-let |
+// Flags: --harmony-completion |
function props(x) { |
var array = []; |
@@ -190,10 +191,12 @@ assertEquals(undefined, eval("for (let i = 0; i < 10; i++) { continue; i; }")); |
assertEquals(0, eval("for (let i = 0; true;) { i; break; }")); |
assertEquals(0, eval("for (const i = 0; true;) { i; break; }")); |
assertEquals(9, eval("for (let i = 0; i < 10; i++) { i; continue; }")); |
-assertEquals(3, eval("for (let i = 0; true; i++) { i; if (i >= 3) break; }")); |
-assertEquals(2, eval("for (let i = 0; true; i++) { if (i >= 3) break; i; }")); |
assertEquals( |
- 2, eval("for (let i = 0; i < 10; i++) { if (i >= 3) continue; i; }")); |
+ undefined, eval("for (let i = 0; true; i++) { i; if (i >= 3) break; }")); |
+assertEquals( |
+ undefined, eval("for (let i = 0; true; i++) { if (i >= 3) break; i; }")); |
+assertEquals( |
+ undefined, eval("for (let i = 0; i < 10; i++) { if (i >= 3) continue; i; }")); |
assertEquals(undefined, eval("foo: for (let i = 0; true;) { break foo; }")); |
assertEquals(undefined, eval("foo: for (const i = 0; true;) { break foo; }")); |
assertEquals(3, eval("foo: for (let i = 3; true;) { i; break foo; }")); |