Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: test/mjsunit/es6/debug-stepnext-for.js

Issue 1218543003: [es6] Ensure that for-in/of loops have a proper TDZ for their boundnames (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/mjsunit/es6/debug-blockscopes.js ('k') | test/mjsunit/es6/regress/regress-2506.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --expose-debug-as debug --harmony 5 // Flags: --expose-debug-as debug --harmony
6 6
7 Debug = debug.Debug; 7 Debug = debug.Debug;
8 var break_count = 0 8 var break_count = 0
9 var exception = null; 9 var exception = null;
10 var log = [] 10 var log = []
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 "i12","I4","i12","I4","i12","I4","i12", 103 "i12","I4","i12","I4","i12","I4","i12",
104 // For-of-let: next(), body, next(), ... 104 // For-of-let: next(), body, next(), ...
105 "j16","J4","j16","J4","j16","J4","j16", 105 "j16","J4","j16","J4","j16","J4","j16",
106 // For-var: var decl, condition, body, next, condition, body, ... 106 // For-var: var decl, condition, body, next, condition, body, ...
107 "k7","k20","K4","k23","k20","K4","k23","k20","K4","k23","k20", 107 "k7","k20","K4","k23","k20","K4","k23","k20","K4","k23","k20",
108 // For: init, condition, body, next, condition, body, ... 108 // For: init, condition, body, next, condition, body, ...
109 "l11","l16","L4","l19","l16","L4","l19","l16","L4","l19","l16", 109 "l11","l16","L4","l19","l16","L4","l19","l16","L4","l19","l16",
110 // Exit. 110 // Exit.
111 "y0","z0", 111 "y0","z0",
112 ] 112 ]
113 print("expected:\n"+ JSON.stringify(log)); 113 print("expected:\n"+ JSON.stringify(expected));
114 114
115 assertArrayEquals(expected, log); 115 assertArrayEquals(expected, log);
116 assertEquals(48, s); 116 assertEquals(48, s);
117 assertNull(exception); 117 assertNull(exception);
OLDNEW
« no previous file with comments | « test/mjsunit/es6/debug-blockscopes.js ('k') | test/mjsunit/es6/regress/regress-2506.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698