diff options
author | bptato <nincsnevem662@gmail.com> | 2022-10-19 11:24:45 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-10-19 11:25:56 +0200 |
commit | 08a758ed7a06e1bff8994c01d6c5d317d400ccf9 (patch) | |
tree | cb53cf39ebd323491715eb569cc509c00edcae91 /src/js | |
parent | c4e2de9cd8cad7e28b33e68b1b76f9044fe510be (diff) | |
download | chawan-08a758ed7a06e1bff8994c01d6c5d317d400ccf9.tar.gz |
Implement tree buffers, fix a js bug, refactor
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/javascript.nim | 1 |
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`))) |