diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-27 15:23:47 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-27 15:23:47 +0100 |
commit | bd12a8be71fb6774da0f68141cf07f33e5145c86 (patch) | |
tree | 4b3980cab9bca1b2939df89929e1cc98037099e5 /src/bindings | |
parent | 9bc2977412ebc1e1cec67a1aa0449c8cca8e36a9 (diff) | |
download | chawan-bd12a8be71fb6774da0f68141cf07f33e5145c86.tar.gz |
dom: fix collection caching
Use ids instead of pure pointers, so we can utilize the JS finalizer.
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/quickjs.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim index a7dd368a..b5aeaf37 100644 --- a/src/bindings/quickjs.nim +++ b/src/bindings/quickjs.nim @@ -298,6 +298,7 @@ proc JS_FreeRuntime*(rt: JSRuntime) proc JS_GetRuntime*(ctx: JSContext): JSRuntime proc JS_ComputeMemoryUsage*(rt: JSRuntime, s: ptr JSMemoryUsage) +proc JS_RunGC*(rt: JSRuntime) proc JS_NewContext*(rt: JSRuntime): JSContext proc JS_NewContextRaw*(rt: JSRuntime): JSContext |