about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-08 18:52:53 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-08 18:52:53 +0200
commit1aca7ec77c965c8428361472bd7cb0d522238813 (patch)
treedea29556001d764470c4c89dece33e1c8e3d713c /src/js
parent86f4c56507bc94d03e7d94be6ede884b9e7b5358 (diff)
downloadchawan-1aca7ec77c965c8428361472bd7cb0d522238813.tar.gz
js: fix finalizer effects
Diffstat (limited to 'src/js')
-rw-r--r--src/js/jsopaque.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/jsopaque.nim b/src/js/jsopaque.nim
index bfe8b07b..2ce6bbc1 100644
--- a/src/js/jsopaque.nim
+++ b/src/js/jsopaque.nim
@@ -42,7 +42,8 @@ type
     htmldda*: JSClassID # only one of these exists: document.all.
     globalUnref*: proc() {.closure.}
 
-  JSFinalizerFunction* = proc(rt: JSRuntime; val: JSValue) {.nimcall.}
+  JSFinalizerFunction* = proc(rt: JSRuntime; val: JSValue) {.nimcall,
+    raises: [].}
 
   JSRuntimeOpaque* = ref object
     plist*: Table[pointer, pointer] # Nim, JS