about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-01 23:26:17 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-01 23:26:17 +0200
commit2f74b628f3c91860860cc19fc07db5c304e8e6ed (patch)
tree161bd11827648bd89042ccb30b7d6fdae523272d /src/html
parent2b10a9b7f61d58157f85c93e8e7b18b1e01e4b79 (diff)
downloadchawan-2f74b628f3c91860860cc19fc07db5c304e8e6ed.tar.gz
Use separate flag for adding getset instead of repr
Still a hack, but maybe more reliable?
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index bf8e0fcc..ee4d5620 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -2990,11 +2990,11 @@ proc registerElements(ctx: JSContext, nodeCID: JSClassID) =
   let elementCID = ctx.registerType(Element, parent = nodeCID)
   const extra_getset = getElementReflectFunctions()
   let htmlElementCID = ctx.registerType(HTMLElement, parent = elementCID,
-    extra_getset = extra_getset)
+    has_extra_getset = true, extra_getset = extra_getset)
   template register(t: typed, tags: set[TagType]) =
     const extra_getset = getReflectFunctions(tags)
     ctx.registerType(t, parent = htmlElementCID,
-      extra_getset = extra_getset)
+      has_extra_getset = true, extra_getset = extra_getset)
   template register(t: typed, tag: TagType) =
     register(t, {tag})
   register(HTMLInputElement, TAG_INPUT)