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

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

Issue 2531543002: [debug] mark more unused debug API as deprecated. (Closed)
Patch Set: Created 4 years 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/cctest/test-debug.cc ('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 = false;
9 9
10 // The active wrapper instance. 10 // The active wrapper instance.
(...skipping 13 matching lines...) Expand all
24 // using nextMessageId. 24 // using nextMessageId.
25 this.nextMessageId = 0; 25 this.nextMessageId = 0;
26 26
27 // The listener method called on certain events. 27 // The listener method called on certain events.
28 this.listener = undefined; 28 this.listener = undefined;
29 29
30 // TODO(jgruber): Determine which of these are still required and possible. 30 // TODO(jgruber): Determine which of these are still required and possible.
31 // Debug events which can occur in the V8 JavaScript engine. 31 // Debug events which can occur in the V8 JavaScript engine.
32 this.DebugEvent = { Break: 1, 32 this.DebugEvent = { Break: 1,
33 Exception: 2, 33 Exception: 2,
34 NewFunction: 3, 34 BeforeCompile: 3,
35 BeforeCompile: 4, 35 AfterCompile: 4,
jgruber 2016/11/24 15:27:03 We can probably also remove BeforeCompile. And loo
Yang 2016/11/25 08:31:34 Done.
36 AfterCompile: 5, 36 CompileError: 5,
37 CompileError: 6, 37 AsyncTaskEvent: 6
38 AsyncTaskEvent: 7
39 }; 38 };
40 39
41 // The different types of steps. 40 // The different types of steps.
42 this.StepAction = { StepOut: 0, 41 this.StepAction = { StepOut: 0,
43 StepNext: 1, 42 StepNext: 1,
44 StepIn: 2, 43 StepIn: 2,
45 StepFrame: 3, 44 StepFrame: 3,
46 }; 45 };
47 46
48 // The different types of scripts matching enum ScriptType in objects.h. 47 // The different types of scripts matching enum ScriptType in objects.h.
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 debug.instance = new DebugWrapper(); 833 debug.instance = new DebugWrapper();
835 debug.instance.enable(); 834 debug.instance.enable();
836 } 835 }
837 return debug.instance; 836 return debug.instance;
838 }}); 837 }});
839 838
840 Object.defineProperty(debug, 'ScopeType', { get: function() { 839 Object.defineProperty(debug, 'ScopeType', { get: function() {
841 const instance = debug.Debug; 840 const instance = debug.Debug;
842 return instance.ScopeType; 841 return instance.ScopeType;
843 }}); 842 }});
OLDNEW
« no previous file with comments | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698