about summary refs log tree commit diff stats
path: root/src/io/loader.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-09-13 20:44:55 +0200
committerbptato <nincsnevem662@gmail.com>2022-09-13 20:44:55 +0200
commit51d83224320b8bd4e81332802bb62158ae6deec5 (patch)
tree4bfb320d7960f78a68de857f26d43ff2f59bea57 /src/io/loader.nim
parent51ea622d58bfca19212fac1800cfb033bb85ec39 (diff)
downloadchawan-51d83224320b8bd4e81332802bb62158ae6deec5.tar.gz
More JS bindings
Diffstat (limited to 'src/io/loader.nim')
-rw-r--r--src/io/loader.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io/loader.nim b/src/io/loader.nim
index 7c68258e..1530bf5b 100644
--- a/src/io/loader.nim
+++ b/src/io/loader.nim
@@ -100,6 +100,7 @@ proc runFileLoader(loader: FileLoader, loadcb: proc()) =
   quit(0)
 
 proc doRequest*(loader: FileLoader, request: Request): Response =
+  new(result)
   let stream = connectSocketStream(loader.process)
   stream.swrite(request)
   stream.flush()