about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-31 15:14:26 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-31 15:14:26 +0100
commit7da10cb7dae4dc6905dec4c50d0d31714a543ae5 (patch)
tree275b2ebad19f904e4e5a0e44e3c1e0a46ac9cb48 /src/js
parentc8863aaa9c27480bf7577beeb514f9a216390e13 (diff)
downloadchawan-7da10cb7dae4dc6905dec4c50d0d31714a543ae5.tar.gz
javascript: fix incorrect error() statement
Diffstat (limited to 'src/js')
-rw-r--r--src/js/javascript.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim
index 63700536..37e7b017 100644
--- a/src/js/javascript.nim
+++ b/src/js/javascript.nim
@@ -688,7 +688,7 @@ func toJSInt(ctx: JSContext, n: SomeInteger): JSValue =
   elif n is uint32:
     return JS_NewUint32(ctx, n)
   else:
-    error("Unsupported numeric type")
+    assert false, "Unsupported numeric type"
 
 func toJSNumber(ctx: JSContext, n: SomeNumber): JSValue =
   when n is SomeInteger: