Index: tools/dom/src/native_DOMImplementation.dart |
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart |
index af81731eaf18167ec702279d4b0fa4ce7c50e0a6..f71ebae4a6ea72efeccf11f750c0824fdca8b340 100644 |
--- a/tools/dom/src/native_DOMImplementation.dart |
+++ b/tools/dom/src/native_DOMImplementation.dart |
@@ -146,8 +146,7 @@ class _Utils { |
* that does not expect REPL support. |
*/ |
static const _CONSOLE_API_SUPPORT_HEADER = |
- 'with ((console && console._commandLineAPI) || {}) {\n'; |
- |
+ 'with ((console && console._commandLineAPI) || { __proto__: null }) {\n'; |
static bool expectsConsoleApi(String expression) { |
return expression.indexOf(_CONSOLE_API_SUPPORT_HEADER) == 0;; |
} |