diff options
author | bptato <nincsnevem662@gmail.com> | 2023-02-05 19:14:16 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-02-05 19:14:16 +0100 |
commit | 9742a2b41d374b4eaea44c1c2d715bf704d752af (patch) | |
tree | 9868c388e45dc25b89e360515df3eb8a9a9ab5fe /src/js/javascript.nim | |
parent | 21178cc60e1d4ba3a6780c5691b9cfb5e7908aa8 (diff) | |
download | chawan-9742a2b41d374b4eaea44c1c2d715bf704d752af.tar.gz |
quickjs: make JSValue distinct on 32-bit
Diffstat (limited to 'src/js/javascript.nim')
-rw-r--r-- | src/js/javascript.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim index f13305c7..f3193199 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -56,6 +56,9 @@ export JS_GetGlobalObject, JS_FreeValue, JS_IsException, JS_GetPropertyStr, JS_IsFunction, JS_NewCFunctionData, JS_Call, JS_DupValue +when sizeof(int) < sizeof(int64): + export quickjs.`==` + type JSContextOpaque* = ref object creg: Table[string, JSClassID] |