| OLD | NEW |
| 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 Loading... |
| 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 }}); |
| OLD | NEW |