about summary refs log tree commit diff stats
path: root/src/ips
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-01 12:52:31 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-01 12:52:31 +0200
commit2c4f1b5a9a879bbefdfa6f9cf8bb72c12cd486d7 (patch)
tree89aec085bf061d439cf2205d909e5e8118c6a698 /src/ips
parent1b7f6849b945e28fc6418c42d8799a899d667a81 (diff)
downloadchawan-2c4f1b5a9a879bbefdfa6f9cf8bb72c12cd486d7.tar.gz
Add setTimeout, setInterval to window
Diffstat (limited to 'src/ips')
-rw-r--r--src/ips/forkserver.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ips/forkserver.nim b/src/ips/forkserver.nim
index c6acefc6..646d7c39 100644
--- a/src/ips/forkserver.nim
+++ b/src/ips/forkserver.nim
@@ -79,6 +79,7 @@ proc forkLoader(ctx: var ForkServerContext, config: LoaderConfig): Pid =
       let msg = e.getStackTrace() & "Error: unhandled exception: " & e.msg &
         " [" & $e.name & "]\n"
       stderr.write(msg)
+      quit(1)
     doAssert false
   let readfd = pipefd[0] # get read
   discard close(pipefd[1]) # close write
@@ -125,6 +126,7 @@ proc forkBuffer(ctx: var ForkServerContext): Pid =
       let msg = e.getStackTrace() & "Error: unhandled exception: " & e.msg &
         " [" & $e.name & "]\n"
       stderr.write(msg)
+      quit(1)
     doAssert false
   ctx.children.add((pid, loaderPid))
   return pid