-
Notifications
You must be signed in to change notification settings - Fork 13
Array as Object #17
Comments
The same thing that happens if you do |
Do you mean that current behavior will not be changed? arr.lastItem still would be equal "kitty"? |
The spec proposal does not currently reflect this, calling |
ah, I'd misunderstood. Yes, I think that either it should throw or it should define an own property, but the latter might be needed for web compat. |
Agreed. I'd rather throw but webcompat would probably force otherwise. However |
It shouldn't throw, shadowing and overwriting are great features of the language, I would say they represent better the real world, where everything is dynamic. Although we have awkward differences, like being able to break the Set (e.g. delete Set.prototype.size), but blocked from doing so with the length property of an Array/String. |
What happens in this case if proposal would be accepted?
The text was updated successfully, but these errors were encountered: