about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-21 23:58:13 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-21 23:58:13 +0200
commite4bcec7dce3924236039aafab56dc609ddf4e6a6 (patch)
treea86d07ef54438bacf3bed0e6bd750c84d3d5aa5f /src/js
parent2ee13b361e84d1f21f3cd4864d18b0fc2751f75d (diff)
downloadchawan-e4bcec7dce3924236039aafab56dc609ddf4e6a6.tar.gz
fromjs: update FromJSAllowedT
Diffstat (limited to 'src/js')
-rw-r--r--src/js/fromjs.nim3
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: