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

Referencing item that doesn't exist on Typed Array causes an error #1351

Closed
gfwilliams opened this issue Feb 26, 2018 · 0 comments
Closed

Referencing item that doesn't exist on Typed Array causes an error #1351

gfwilliams opened this issue Feb 26, 2018 · 0 comments

Comments

@gfwilliams
Copy link
Member

here: http://forum.espruino.com/conversations/317418

>const arr= new Uint32Array([1,2,3,4]);
=new Uint32Array([1, 2, 3, 4])
>typeof arr.xyz
Uncaught Error: Field or method "xyz" does not already exist, and can't create it on Uint32Array
 at line 1 col 11
typeof arr.xyz
          ^

This should only happen when there's an attempt to write to it.

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

1 participant