Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

@mnaamani
Copy link

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
Copy link

iambus commented May 9, 2013

I'm blocked by a similar issue.

@zjuwwq
Copy link

zjuwwq commented May 10, 2013

arr instanceof global.ArrayBuffer ?

@mnaamani
Copy link
Author

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?

@rogerwang
Copy link
Member

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

@rogerwang
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants