Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

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:

Boyu Guo

I'm blocked by a similar issue.


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

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

Roger Wang rogerwang closed this
Roger Wang

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.