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

Closed
mnaamani opened this Issue May 8, 2013 · 5 comments

Projects

None yet

4 participants

@mnaamani
mnaamani commented May 8, 2013

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

iambus commented May 9, 2013

I'm blocked by a similar issue.

zjuwwq commented May 10, 2013

arr instanceof global.ArrayBuffer ?

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?

Member

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

@rogerwang rogerwang closed this May 19, 2013
Member

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