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

Side by Side Diff: test/mjsunit/regress/regress-3717.js

Issue 2480283002: Revert of [debugger] Migrate more debugger tests to inspector (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
« no previous file with comments | « test/mjsunit/regress/regress-2825.js ('k') | test/mjsunit/regress/regress-392114.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 2014 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 --no-lazy
6
7 Debug = debug.Debug;
8 var exception = null;
9 var break_count = 0;
10
11 function f() {
12 function g(p) {
13 return 1;
14 }
15 g(1);
16 };
17
18 function listener(event, exec_state, event_data, data) {
19 try {
20 if (event == Debug.DebugEvent.Break) break_count++;
21 } catch (e) {
22 exception = e;
23 }
24 }
25
26 Debug.setListener(listener);
27 var bp = Debug.setBreakPoint(f, 2);
28 f();
29 Debug.clearBreakPoint(bp);
30 Debug.setListener(null);
31
32 assertEquals(1, break_count);
33 assertNull(exception);
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-2825.js ('k') | test/mjsunit/regress/regress-392114.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698