verify-context-in-for-loop-block.js (395B)
1 // Copyright (C) 2011 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 13.1 5 description: > 6 verify context in for loop block 2 7 ---*/ 8 function f() {} 9 10 (function(x) { 11 for (var i = 0; i < 10; ++i) { 12 let x = 'inner'; 13 continue; 14 } 15 f(); 16 assert.sameValue(x, 'outer'); 17 })('outer'); 18 19 20 reportCompare(0, 0);