Index: LayoutTests/inspector/console/console-substituted.html |
diff --git a/LayoutTests/inspector/console/console-substituted.html b/LayoutTests/inspector/console/console-substituted.html |
index 1f092c9e72a1ce7712e1cf6efa48414afea30df3..e214d1b3a3f672900c6d892c21fb34ba643e4fa3 100644 |
--- a/LayoutTests/inspector/console/console-substituted.html |
+++ b/LayoutTests/inspector/console/console-substituted.html |
@@ -10,10 +10,7 @@ function deleteConsole() |
function substituteConsole() |
{ |
- window.console = { |
- get _commandLineAPI() { return undefined; }, |
- set _commandLineAPI() {} |
- }; |
+ Object.defineProperty(window, "__commandLineAPI", { enumerable: false, configurable: false, get: function() { throw "Substituted" }}); |
} |
var test = function() |