Commit f4721a5f authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[test/inspector] migrate utils to ObjectTemplate

v8::Extension should be replaced with ObjectTemplates. So let's not use it for utils.

BUG=none
R=dgozman@chromium.org

Review-Url: https://codereview.chromium.org/2828143002
Cr-Commit-Position: refs/heads/master@{#44754}
parent fa1de614
This diff is collapsed.
......@@ -33,36 +33,6 @@ Protocol = new Proxy({}, {
InspectorTest.logProtocolCommandCalls = (command) => InspectorTest._commandsForLogging.add(command);
var utils = {};
(function setupUtils() {
utils.load = load;
this.load = null;
utils.read = read;
this.read = null;
utils.compileAndRunWithOrigin = compileAndRunWithOrigin;
this.compileAndRunWithOrigin = null;
utils.quit = quit;
this.quit = null;
utils.print = print;
this.print = null;
utils.setlocale = setlocale;
this.setlocale = null;
utils.setCurrentTimeMSForTest = setCurrentTimeMSForTest;
this.setCurrentTimeMSForTest = null;
utils.setMemoryInfoForTest = setMemoryInfoForTest;
this.setMemoryInfoForTest = null;
utils.schedulePauseOnNextStatement = schedulePauseOnNextStatement;
this.schedulePauseOnNextStatement = null;
utils.cancelPauseOnNextStatement = cancelPauseOnNextStatement;
this.cancelPauseOnNextStatement = null;
utils.reconnect = reconnect;
this.reconnect = null;
utils.setLogConsoleApiMessageCalls = setLogConsoleApiMessageCalls;
this.setLogConsoleApiMessageCalls = null;
utils.createContextGroup = createContextGroup;
this.createContextGroup = null;
})();
InspectorTest.log = utils.print.bind(null);
InspectorTest.logMessage = function(originalMessage)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment