Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
index 1f3ce3cf19a26447d56d654cdd5f15ad1b05188e..510b44164d4735fe48751d0dd7451dc8e314c44a 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
@@ -62,9 +62,6 @@ |
InspectorTest.sendCommandOrDie = function(command, properties, callback) |
{ |
- var fulfill; |
- var result = new Promise(f => fulfill = f); |
- |
InspectorTest.sendCommand(command, properties || {}, commandCallback); |
function commandCallback(msg) |
{ |
@@ -75,9 +72,7 @@ |
} |
if (callback) |
callback(msg.result); |
- fulfill(msg.result); |
- } |
- return result; |
+ } |
} |
InspectorTest.sendCommandPromise = function(method, params) |