Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ArrayBuffer returned from a module, not an instanceof ArrayBuffer. #702

Closed
mnaamani opened this Issue · 5 comments

4 participants

Mokhtar Naamani Boyu Guo weiwenqing Roger Wang
Mokhtar Naamani

An ArrayBuffer returned from a module, is no longer an instanceof ArrayBuffer, consequently any view (Uint8Array,Int8Array... etc.) created from it is zero sized.

code example: https://gist.github.com/mnaamani/5540054

Boyu Guo

I'm blocked by a similar issue.

weiwenqing

arr instanceof global.ArrayBuffer ?

Mokhtar Naamani

arr instanceof global.ArrayBuffer is 'true'
the ArrayBufferView constructors need to do a similar check as well. Maybe someone familiar with TypedArrays implementation in node-webkit can have a look at the native code?

Roger Wang
Owner

Hello, this is expected. For the reason and workaround, please see #716 .

Roger Wang rogerwang closed this
Roger Wang
Owner

And this issue is duplicate with #716

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.