diff options
author | 迷渡 <justjavac@gmail.com> | 2019-04-08 21:25:01 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-08 09:25:01 -0400 |
commit | cdb72afd8d91978573f0fa897844aee853983b44 (patch) | |
tree | 036611def92efd772a5768bc98e6057878ba374e /js/globals.ts | |
parent | 1746a3ac69c880b76d4320b701e68a385e37900d (diff) |
fix `console instanceof Console` (#2073)
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index 93fe6dbe7..4bb40fdb5 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -52,6 +52,7 @@ Object.freeze(window.Deno); // by ObjectCreate(%ObjectPrototype%), instead of %ObjectPrototype%. let console = Object.create({}) as consoleTypes.Console; Object.assign(console, new consoleTypes.Console(core.print)); +console[consoleTypes.isConsoleInstance] = true; // Globally available functions and object instances. window.atob = textEncoding.atob; |