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

Side by Side Diff: test/debugger/test-api.js

Issue 2746053006: NOT FOR COMMIT: test that interceptors work with the inspector.
Patch Set: Created 3 years, 9 months 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.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "use strict"; 5 "use strict";
6 6
7 // If true, prints all messages sent and received by inspector. 7 // If true, prints all messages sent and received by inspector.
8 const printProtocolMessages = false; 8 const printProtocolMessages = true;
9 9
10 // The active wrapper instance. 10 // The active wrapper instance.
11 let activeWrapper = undefined; 11 let activeWrapper = undefined;
12 12
13 // Receiver function called by inspector, delegating to active wrapper. 13 // Receiver function called by inspector, delegating to active wrapper.
14 function receive(message) { 14 function receive(message) {
15 activeWrapper.receiveMessage(message); 15 activeWrapper.receiveMessage(message);
16 } 16 }
17 17
18 class DebugWrapper { 18 class DebugWrapper {
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 debug.instance = new DebugWrapper(); 902 debug.instance = new DebugWrapper();
903 debug.instance.enable(); 903 debug.instance.enable();
904 } 904 }
905 return debug.instance; 905 return debug.instance;
906 }}); 906 }});
907 907
908 Object.defineProperty(debug, 'ScopeType', { get: function() { 908 Object.defineProperty(debug, 'ScopeType', { get: function() {
909 const instance = debug.Debug; 909 const instance = debug.Debug;
910 return instance.ScopeType; 910 return instance.ScopeType;
911 }}); 911 }});
OLDNEW
« no previous file with comments | « test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698