ECMAScript quiz: which method from Array.prototype can cause getter invocations on Array.prototype when used on a normal array?
-
-
at least one of these still triggers when you're using a saved copy of the method
-
unless I'm missing something
End of conversation
New conversation -
-
-
nope, look at the spec. Any Get() abstract operation can trigger a getter https://tc39.github.io/ecma262/#sec-properties-of-the-array-prototype-object …
-
but only if the property doesn't exist on the array already; so e.g. [1].pop() doesn't invoke getters on Array.prototype
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.