[Webkit-unassigned] [Bug 133494] New: ArrayIterator should not be exposed in Safari 8

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 3 17:22:26 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=133494

           Summary: ArrayIterator should not be exposed in Safari 8
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Mac OS X 10.9
            Status: NEW
          Severity: Normal
          Priority: P1
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ljharb at gmail.com


In Safari 8:
- Object.prototype.toString.call(ArrayIterator) === '[object Function']
- typeof ArrayIterator !== 'function'
- ArrayIterator() // throws

However, none of this is relevant, because the ES6 spec requires that ArrayIterator not be exposed.

Per https://twitter.com/ohunt/status/473981524983812096 and https://people.mozilla.org/~jorendorff/es6-draft.html#sec-array-iterator-objects

This breaks the es6-shim, and potentially any code that doesn't expect the ArrayIterator global to be defined - or attempts to use it like a standard JS object.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list