aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/monoucha0/monoucha/quickjs.nim8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/monoucha0/monoucha/quickjs.nim b/lib/monoucha0/monoucha/quickjs.nim
index 39ed7fab..31924112 100644
--- a/lib/monoucha0/monoucha/quickjs.nim
+++ b/lib/monoucha0/monoucha/quickjs.nim
@@ -62,8 +62,6 @@ when sizeof(int) < sizeof(int64):
template JS_MKPTR*(t, p: untyped): JSValue =
JSValue((cast[uint64](int64(t)) shl 32) or cast[uint](p))
-
- proc `==`*(a, b: JSValueConst): bool {.borrow.}
else:
type
JSValueUnion* {.importc, header: qjsheader, union.} = object
@@ -285,6 +283,12 @@ type
JS_PROMISE_FULFILLED
JS_PROMISE_REJECTED
+proc `==`*(a, b: JSValue): bool {.error.} =
+ discard
+
+proc `==`*(a, b: JSValueConst): bool {.error.} =
+ discard
+
func `==`*(a, b: JSAtom): bool {.borrow.}
converter toJSValueConst*(val: JSValue): JSValueConst =