diff options
Diffstat (limited to 'monoucha/fromjs.nim')
-rw-r--r-- | monoucha/fromjs.nim | 3 |
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() |