diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-08 18:52:53 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-08 18:52:53 +0200 |
commit | 1aca7ec77c965c8428361472bd7cb0d522238813 (patch) | |
tree | dea29556001d764470c4c89dece33e1c8e3d713c /src/js | |
parent | 86f4c56507bc94d03e7d94be6ede884b9e7b5358 (diff) | |
download | chawan-1aca7ec77c965c8428361472bd7cb0d522238813.tar.gz |
js: fix finalizer effects
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/jsopaque.nim | 3 |
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 |