about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-10-19 11:24:45 +0200
committerbptato <nincsnevem662@gmail.com>2022-10-19 11:25:56 +0200
commit08a758ed7a06e1bff8994c01d6c5d317d400ccf9 (patch)
treecb53cf39ebd323491715eb569cc509c00edcae91 /src/js
parentc4e2de9cd8cad7e28b33e68b1b76f9044fe510be (diff)
downloadchawan-08a758ed7a06e1bff8994c01d6c5d317d400ccf9.tar.gz
Implement tree buffers, fix a js bug, refactor
Diffstat (limited to 'src/js')
-rw-r--r--src/js/javascript.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim
index 3047a9de..b453cb13 100644
--- a/src/js/javascript.nim
+++ b/src/js/javascript.nim
@@ -1302,6 +1302,7 @@ macro registerType*(ctx: typed, t: typed, parent: JSClassID = 0, asglobal = fals
       elif f1.strVal.startsWith("js_set"):
         setters[f0] = f1
       else:
+        f0 = fun.name
         tabList.add(quote do:
           JS_CFUNC_DEF(`f0`, 0, cast[JSCFunction](`f1`)))