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

Side by Side Diff: test/debugger/debug/es6/debug-liveedit-new-target-2.js

Issue 2503293002: [debug-wrapper] LiveEdit, frame.restart(), breakpoints (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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 --allow-natives-syntax
6 5
7 // Test that live-editing a frame to introduce new.target fails. 6 // Test that live-editing a frame to introduce new.target fails.
8 7
9 Debug = debug.Debug 8 Debug = debug.Debug
10 var calls = 0; 9 var calls = 0;
11 var exceptions = 0; 10 var exceptions = 0;
12 var results = []; 11 var results = [];
13 var replace_again; 12 var replace_again;
14 13
15 eval(` 14 eval(`
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Revert(); 53 Revert();
55 assertEquals(1, calls); 54 assertEquals(1, calls);
56 assertEquals(0, exceptions); 55 assertEquals(0, exceptions);
57 assertEquals([LogNewTarget], results); 56 assertEquals([LogNewTarget], results);
58 57
59 replace_again = true; 58 replace_again = true;
60 new LogNewTarget(); 59 new LogNewTarget();
61 assertEquals(2, calls); // No restarts 60 assertEquals(2, calls); // No restarts
62 assertEquals(1, exceptions); // Replace failed. 61 assertEquals(1, exceptions); // Replace failed.
63 assertEquals([LogNewTarget, true], results); 62 assertEquals([LogNewTarget, true], results);
OLDNEW
« no previous file with comments | « test/debugger/debug/es6/debug-liveedit-new-target-1.js ('k') | test/debugger/debug/es6/debug-liveedit-new-target-3.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698