about summary refs log tree commit diff stats
path: root/src/html/env.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/env.nim')
-rw-r--r--src/html/env.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index a232baa5..7f270e58 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -1,3 +1,5 @@
+import streams
+
 import html/dom
 import html/htmlparser
 import io/loader
@@ -51,7 +53,7 @@ proc addNavigatorModule(ctx: JSContext) =
 
 proc newWindow*(scripting: bool, loader = none(FileLoader)): Window =
   result = Window(
-    console: console(),
+    console: console(err: newFileStream(stderr)),
     navigator: Navigator(),
     loader: loader,
     settings: EnvironmentSettings(