You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object.defineProperty (used to marks as non-enumerable) is extremely slow compared to a property
Arrays can't be subclassed so in EXTEND_PROTOTYPES=false we currently must apply the custom methods to each and every array, not just a shared prototype. This and 1. result in it be prohibitively slow
Planned work to improve this situation, is #10899 but its quite a bit of work. Will eventually finish it up.
Although not ideal this isn't considered a bug. As such Im going to close this.
Note: This behaviour only appears when prototype extension is disabled.
Object.keys([])
andObject.keys(Ember.A())
return different arrays.Object.keys([])
returns an empty arrayObject.keys(Ember.A())
returns a non empty array.This is due to the Ember mixins being injected in the native array.
It looks like the keys added to the array are not declared non-enumerable.
Here's a jsbin: https://output.jsbin.com/futequ
When prototype extensions are enabled, in both cases, an empty array is returned.
The text was updated successfully, but these errors were encountered: