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

Side by Side Diff: test/mjsunit/regress/regress-4703.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
« no previous file with comments | « test/mjsunit/regress/regress-4309-3.js ('k') | test/mjsunit/regress/regress-crbug-609046.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Flags: --expose-debug-as debug
6
7 var exception = null;
8
9 function listener(event, exec_state, event_data, data) {
10 if (event != debug.Debug.DebugEvent.Break) return;
11 try {
12 var all_scopes = exec_state.frame().allScopes();
13 assertEquals([ debug.ScopeType.Block,
14 debug.ScopeType.Local,
15 debug.ScopeType.Script,
16 debug.ScopeType.Global ],
17 all_scopes.map(scope => scope.scopeType()));
18 } catch (e) {
19 exception = e;
20 print(e);
21 }
22 }
23
24 debug.Debug.setListener(listener);
25
26 (function(arg, ...rest) {
27 var one = 1;
28 function inner() {
29 one;
30 arg;
31 }
32 debugger;
33 })();
34
35 debug.Debug.setListener(null);
36 assertNull(exception);
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-4309-3.js ('k') | test/mjsunit/regress/regress-crbug-609046.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698