-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Cannot augment typed array (browser incompatibility) #10221
Comments
This is intended behaviour. See #4324 |
Deno does not support the |
@crowlKats @lucacasonato Ah, thank you both - lightening fast replies! |
@lucacasonato you mean Object.create() right? |
Ah yes. My bad. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While trying to run some browser code in Deno, I noticed that some browserify code was checking for typed array support by checking if this code snippet throws an error:
It does throw an error in Deno
(and Node), but not in browsers.(Edit: Woops, it does actually work in Node.js too)
I have no idea why this is the type of check they decided to use to check for typed array support, and it's hard to see any real world use case for augmenting typed arrays like this (it seems inadvisable), but I thought I'd report this browser incompatibility in case it's a bug. Please close this issue right away if it' is expected behavior.
Cheers!
The text was updated successfully, but these errors were encountered: