diff options
Diffstat (limited to 'src/js/fromjs.nim')
-rw-r--r-- | src/js/fromjs.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/fromjs.nim b/src/js/fromjs.nim index ccf8abcb..055ae19e 100644 --- a/src/js/fromjs.nim +++ b/src/js/fromjs.nim @@ -98,6 +98,9 @@ func fromJSInt[T: SomeInteger](ctx: JSContext; val: JSValue): if JS_ToUint32(ctx, addr ret, val) < 0: return err() return ok(ret) + else: + static: + error($T & " cannot be converted to JS automatically") proc fromJSFloat64(ctx: JSContext; val: JSValue): JSResult[float64] = var f64: float64 |