about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/local')
-rw-r--r--src/local/client.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/client.nim b/src/local/client.nim
index 9038488a..237ee284 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -179,7 +179,7 @@ proc jsQuit(client: Client; code: uint32 = 0): JSValue {.jsfunc: "quit".} =
   client.exitCode = int(code)
   let ctx = client.jsctx
   let ctor = ctx.getOpaque().errCtorRefs[jeInternalError]
-  let err = JS_CallConstructor(ctx, ctor, 1, JS_UNDEFINED.toJSValueArray())
+  let err = JS_CallConstructor(ctx, ctor, 0, nil)
   JS_SetUncatchableError(ctx, err, true);
   return JS_Throw(ctx, err)