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

Unified Diff: Source/WebCore/inspector/InjectedScriptSource.js

Issue 14148002: Added a shortcut for the console.table function. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/WebCore/inspector/InjectedScriptSource.js
diff --git a/Source/WebCore/inspector/InjectedScriptSource.js b/Source/WebCore/inspector/InjectedScriptSource.js
index fea1564d102f6536f076e9f40df672d9ce448d84..34e163ec5ba633670d5ae1e0c28ad6f7f6ead969 100644
--- a/Source/WebCore/inspector/InjectedScriptSource.js
+++ b/Source/WebCore/inspector/InjectedScriptSource.js
@@ -1153,7 +1153,7 @@ function CommandLineAPI(commandLineAPIImpl, callFrame)
*/
CommandLineAPI.members_ = [
"$", "$$", "$x", "dir", "dirxml", "keys", "values", "profile", "profileEnd",
- "monitorEvents", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners"
+ "monitorEvents", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners", "table"
];
/**
@@ -1310,6 +1310,11 @@ CommandLineAPIImpl.prototype = {
return InjectedScriptHost.getEventListeners(node);
},
+ table: function()
+ {
+ inspectedWindow.console.table.apply(inspectedWindow.console, arguments);
+ },
+
/**
* @param {number} num
*/

Powered by Google App Engine
This is Rietveld 408576698