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

Side by Side Diff: test/debugger/debug/debug-exceptions.js

Issue 2480293009: [debug-wrapper] Add caught/uncaught to exception pauses (Closed)
Patch Set: 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: --expose-debug-as debug
6 5
7 6
8 Debug = debug.Debug 7 Debug = debug.Debug
9 8
10 let error = false; 9 let error = false;
11 let uncaught; 10 let uncaught;
12 11
13 function listener(event, exec_state, event_data, data) { 12 function listener(event, exec_state, event_data, data) {
14 if (event != Debug.DebugEvent.Exception) return; 13 if (event != Debug.DebugEvent.Exception) return;
15 try { 14 try {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 function* f() { yield* iterable } 78 function* f() { yield* iterable }
80 79
81 let g = f(); 80 let g = f();
82 g.next(); 81 g.next();
83 assertEquals({value: undefined, done: true}, g.throw()); 82 assertEquals({value: undefined, done: true}, g.throw());
84 assertNull(uncaught); // No exception event was generated. 83 assertNull(uncaught); // No exception event was generated.
85 } 84 }
86 85
87 86
88 assertFalse(error); 87 assertFalse(error);
OLDNEW
« no previous file with comments | « test/debugger/debug/debug-event-listener.js ('k') | test/debugger/debug/es6/debug-promises/stepin-handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698