about summary refs log tree commit diff stats
path: root/src/js/javascript.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-02-05 19:14:16 +0100
committerbptato <nincsnevem662@gmail.com>2023-02-05 19:14:16 +0100
commit9742a2b41d374b4eaea44c1c2d715bf704d752af (patch)
tree9868c388e45dc25b89e360515df3eb8a9a9ab5fe /src/js/javascript.nim
parent21178cc60e1d4ba3a6780c5691b9cfb5e7908aa8 (diff)
downloadchawan-9742a2b41d374b4eaea44c1c2d715bf704d752af.tar.gz
quickjs: make JSValue distinct on 32-bit
Diffstat (limited to 'src/js/javascript.nim')
-rw-r--r--src/js/javascript.nim3
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]