diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-24 16:41:13 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-24 18:57:13 +0200 |
commit | 644f8256db9c7216cfc8a67ba6cb380a96ba28c5 (patch) | |
tree | 8fa210688fece9906a93cdee551f0df838deff19 /src/html/env.nim | |
parent | b10548ed6a1df090cdc7d139ba4ce531ebb1c7ea (diff) | |
download | chawan-644f8256db9c7216cfc8a67ba6cb380a96ba28c5.tar.gz |
Working Nim-QuickJS GC integration
I believe this works correctly. Hopefully I'm not wrong.
Diffstat (limited to 'src/html/env.nim')
-rw-r--r-- | src/html/env.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/env.nim b/src/html/env.nim index eba067a8..b3c14fc5 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -110,7 +110,7 @@ proc addScripting*(window: Window, selector: Selector[int]) = ) var global = JS_GetGlobalObject(ctx) ctx.registerType(Window, asglobal = true) - ctx.setOpaque(global, window) + ctx.setGlobal(global, window) ctx.defineProperty(global, "window", global) JS_FreeValue(ctx, global) ctx.addDOMExceptionModule() |