Open tonygermano opened 1 month ago
In regard to #1128 , the optimization could probably still be performed for a NativeArray if we check that the value stored in the Symbol.iterator
property still points to the built-in iterator method and has not been changed by the user.
According to the spec, if the object passed to
Array.from
has an iterator method with aSymbol.iterator
key, then that should be used before checking for a length property to see if the object is array-like. This is true even for native arrays.In Chrome
Rhino