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

Side by Side Diff: test/debugger/debug/harmony/async-debug-caught-exception.js

Issue 2487673002: [debugger] Basic scope functionality and exception events in wrapper (Closed)
Patch Set: Formatting 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: --allow-natives-syntax --harmony-async-await --expose-debug-as debug 5 // Flags: --harmony-async-await
6 6
7 Debug = debug.Debug 7 Debug = debug.Debug
8 8
9 var exception = null; 9 var exception = null;
10 var log; 10 var log;
11 11
12 function listener(event, exec_state, event_data, data) { 12 function listener(event, exec_state, event_data, data) {
13 if (event != Debug.DebugEvent.Exception) return; 13 if (event != Debug.DebugEvent.Exception) return;
14 try { 14 try {
15 var line = exec_state.frame(0).sourceLineText(); 15 var line = exec_state.frame(0).sourceLineText();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 throw foo 135 throw foo
136 } 136 }
137 confused(); 137 confused();
138 Promise.resolve().then(() => { 138 Promise.resolve().then(() => {
139 Debug.setListener(listener); 139 Debug.setListener(listener);
140 Debug.setBreakOnUncaughtException(); 140 Debug.setBreakOnUncaughtException();
141 resolve(); 141 resolve();
142 }); 142 });
143 143
144 assertEquals([], log); 144 assertEquals([], log);
OLDNEW
« no previous file with comments | « test/debugger/debug/es6/regress/regress-3280.js ('k') | test/debugger/debug/harmony/async-debug-caught-exception-cases.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698