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

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

Issue 1744123003: [debugger] fix break locations for assignments and return. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes and addressed comments Created 4 years, 9 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
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 Debug.setListener(null); // Break z 84 Debug.setListener(null); // Break z
85 85
86 print("log:\n"+ JSON.stringify(log)); 86 print("log:\n"+ JSON.stringify(log));
87 // The let declaration differs from var in that the loop variable 87 // The let declaration differs from var in that the loop variable
88 // is declared in every iteration. 88 // is declared in every iteration.
89 // TODO(verwaest): For-of has hacky position numbers for Symbol.iterator and 89 // TODO(verwaest): For-of has hacky position numbers for Symbol.iterator and
90 // .next. Restore to proper positions once the CallPrinter can disambiguate 90 // .next. Restore to proper positions once the CallPrinter can disambiguate
91 // based on other values. 91 // based on other values.
92 var expected = [ 92 var expected = [
93 // Entry 93 // Entry
94 "a2","b2", 94 "a2",
95 // Empty for-in-var: get enumerable 95 // Empty for-in-var: get enumerable
96 "c16", 96 "c16",
97 // Empty for-in: get enumerable 97 // Empty for-in: get enumerable
98 "d12", 98 "d12",
99 // For-in-var: get enumerable, assign, body, assign, body, ... 99 // For-in-var: get enumerable, assign, body, assign, body, ...
100 "e16","e11","E4","e11","E4","e11","E4","e11", 100 "e16","e11","E4","e11","E4","e11","E4","e11",
101 // For-in: get enumerable, assign, body, assign, body, ... 101 // For-in: get enumerable, assign, body, assign, body, ...
102 "f12","f7","F4","f7","F4","f7","F4","f7", 102 "f12","f7","F4","f7","F4","f7","F4","f7",
103 // For-in-let: get enumerable, next, body, next, ... 103 // For-in-let: get enumerable, next, body, next, ...
104 "g16","g11","G4","g11","G4","g11","G4","g11", 104 "g16","g11","G4","g11","G4","g11","G4","g11",
(...skipping 10 matching lines...) Expand all
115 // For-let: init, condition, body, next, condition, body, ... 115 // For-let: init, condition, body, next, condition, body, ...
116 "m7","m20","M4","m26","m20","M4","m26","m20","M4","m26","m20", 116 "m7","m20","M4","m26","m20","M4","m26","m20","M4","m26","m20",
117 // Exit. 117 // Exit.
118 "y0","z0", 118 "y0","z0",
119 ] 119 ]
120 print("expected:\n"+ JSON.stringify(expected)); 120 print("expected:\n"+ JSON.stringify(expected));
121 121
122 assertArrayEquals(expected, log); 122 assertArrayEquals(expected, log);
123 assertEquals(54, s); 123 assertEquals(54, s);
124 assertNull(exception); 124 assertNull(exception);
OLDNEW
« no previous file with comments | « test/mjsunit/debug-step-end-of-script.js ('k') | test/mjsunit/harmony/debug-step-destructuring-assignment.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698