From e4bcec7dce3924236039aafab56dc609ddf4e6a6 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 21 Oct 2023 23:58:13 +0200 Subject: fromjs: update FromJSAllowedT --- src/js/fromjs.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/fromjs.nim b/src/js/fromjs.nim index 00aea78b..f5fc7d31 100644 --- a/src/js/fromjs.nim +++ b/src/js/fromjs.nim @@ -428,7 +428,8 @@ proc fromJSArrayBufferView(ctx: JSContext, val: JSValue): ) return ok(view) -type FromJSAllowedT = (object and not (Result|Option|Table|JSValue|JSDict)) +type FromJSAllowedT = (object and not (Result|Option|Table|JSValue|JSDict| + JSArrayBuffer|JSArrayBufferView|JSUint8Array)) proc fromJS*[T](ctx: JSContext, val: JSValue): JSResult[T] = when T is string: -- cgit 1.4.1-2-gfad0