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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js

Issue 1916023002: [DevTools] Move last inspected objects to V8InspectorSessionImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-part-command-line-api-to-native
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js
index b83a1f6d8b5eb87ac5c6b275196b4805f48b95b1..878192eb5f106e0c2fcd786b1d65bcc42ea6aa47 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js
@@ -618,10 +618,6 @@ InjectedScript.prototype = {
var commandLineAPIImpl = this._commandLineAPIImpl;
for (var member of members)
nativeCommandLineAPI[member] = bind(commandLineAPIImpl[member], commandLineAPIImpl);
- for (var i = 0; i < 5; ++i) {
- var member = "$" + i;
- nativeCommandLineAPI[member] = bind(commandLineAPIImpl._inspectedObject, commandLineAPIImpl, i);
- }
var functionToStringMap = new Map([
["$", "function $(selector, [startNode]) { [Command Line API] }"],
["$$", "function $$(selector, [startNode]) { [Command Line API] }"],
@@ -1342,14 +1338,6 @@ CommandLineAPIImpl.prototype = {
},
/**
- * @param {number} num
- */
- _inspectedObject: function(num)
- {
- return InjectedScriptHost.inspectedObject(num);
- },
-
- /**
* @param {!Array.<string>|string=} types
* @return {!Array.<string>}
*/

Powered by Google App Engine
This is Rietveld 408576698