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

Side by Side Diff: test/mjsunit/harmony/debug-step-destructuring-bind.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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-destructuring-bind 5 // Flags: --expose-debug-as debug --harmony-destructuring-bind
6 6
7 var exception = null; 7 var exception = null;
8 var Debug = debug.Debug; 8 var Debug = debug.Debug;
9 var break_count = 0; 9 var break_count = 0;
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 try { 91 try {
92 throw [3, 4]; // B41 92 throw [3, 4]; // B41
93 } catch ([ 93 } catch ([
94 a, // B42 94 a, // B42
95 b, // B43 95 b, // B43
96 c = 6 // B44 96 c = 6 // B44
97 ]) { 97 ]) {
98 assertEquals([3, 4, 6], [a, b, c]); // B45 98 assertEquals([3, 4, 6], [a, b, c]); // B45
99 } 99 }
100 100
101 var { // B46 101 var {
102 x: a, // B47 102 x: a, // B46
103 y: b = 9 // B48 103 y: b = 9 // B47
104 } = { x: 4 }; 104 } = { x: 4 };
105 assertEquals([4, 9], [a, b]); // B49 105 assertEquals([4, 9], [a, b]); // B48
106 } // B50 106 } // B49
107 107
108 test(); 108 test();
109 Debug.setListener(null); // B51 109 Debug.setListener(null); // B50
110 assertNull(exception); 110 assertNull(exception);
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/debug-step-destructuring-assignment.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698