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

Side by Side Diff: test/debugger/debug/harmony/async-function-debug-evaluate.js

Issue 2497973002: [debug-wrapper] Further extend the debug wrapper (Closed)
Patch Set: Address comments Created 4 years, 1 month 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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: --harmony-async-await --expose-debug-as debug 5 // Flags: --harmony-async-await
6 6
7 var Debug = debug.Debug; 7 var Debug = debug.Debug;
8 var breakPointCount = 0; 8 var breakPointCount = 0;
9 9
10 function listener(event, exec_state, event_data, data) { 10 function listener(event, exec_state, event_data, data) {
11 if (event != Debug.DebugEvent.Break) return; 11 if (event != Debug.DebugEvent.Break) return;
12 ++breakPointCount; 12 ++breakPointCount;
13 try { 13 try {
14 if (breakPointCount === 1) { 14 if (breakPointCount === 1) {
15 assertEquals( 15 assertEquals(
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 test(). 131 test().
132 then(x => { 132 then(x => {
133 Debug.setListener(null); 133 Debug.setListener(null);
134 }). 134 }).
135 catch(error => { 135 catch(error => {
136 print(error.stack); 136 print(error.stack);
137 quit(1); 137 quit(1);
138 Debug.setListener(null); 138 Debug.setListener(null);
139 }); 139 });
OLDNEW
« no previous file with comments | « test/debugger/debug/es6/regress/regress-468661.js ('k') | test/debugger/debug/ignition/elided-instruction.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698