diff options
author | bptato <nincsnevem662@gmail.com> | 2024-08-11 14:05:15 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-08-11 14:05:15 +0200 |
commit | a0c6f80f76d60bc2bb36942d4162b90e6b5aa2a2 (patch) | |
tree | dbf93dc3b168c4a9e135f0fa4e1300892645ba68 /src/local/client.nim | |
parent | d0910f85adfec4a2cddfe2297be821841f4dd671 (diff) | |
download | chawan-a0c6f80f76d60bc2bb36942d4162b90e6b5aa2a2.tar.gz |
dom: remove generic JS bindings
Dispatch manually with fromJS instead.
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index d3fd9ebe..3d3e1bb0 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -821,7 +821,7 @@ proc newClient*(config: Config; forkserver: ForkServer; loaderPid: int; factory: newCAtomFactory(), loader: loader ) - jsrt.setInterruptHandler(interruptHandler, cast[pointer](client)) + JS_SetInterruptHandler(jsrt, interruptHandler, cast[pointer](client)) let global = JS_GetGlobalObject(jsctx) jsctx.setGlobal(client) jsctx.definePropertyE(global, "cmd", config.cmd.jsObj) |