about summary refs log tree commit diff stats
path: root/monoucha/fromjs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'monoucha/fromjs.nim')
-rw-r--r--monoucha/fromjs.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/monoucha/fromjs.nim b/monoucha/fromjs.nim
index 4bd52605..7cf5db9a 100644
--- a/monoucha/fromjs.nim
+++ b/monoucha/fromjs.nim
@@ -483,7 +483,8 @@ proc fromJS*(ctx: JSContext; val: JSValue; res: out JSArrayBufferView):
     abuf: abuf,
     offset: offset,
     nmemb: nmemb,
-    nsize: nsize
+    nsize: nsize,
+    t: JS_GetTypedArrayType(val)
   )
   return ok()