diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/javascript.nim | 2 |
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: |