diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-21 23:58:13 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-21 23:58:13 +0200 |
commit | e4bcec7dce3924236039aafab56dc609ddf4e6a6 (patch) | |
tree | a86d07ef54438bacf3bed0e6bd750c84d3d5aa5f /src/js | |
parent | 2ee13b361e84d1f21f3cd4864d18b0fc2751f75d (diff) | |
download | chawan-e4bcec7dce3924236039aafab56dc609ddf4e6a6.tar.gz |
fromjs: update FromJSAllowedT
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/fromjs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
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: |