[Webkit-unassigned] [Bug 144128] New: Array.prototype methods must use ToLength

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 23 15:21:14 PDT 2015


            Bug ID: 144128
           Summary: Array.prototype methods must use ToLength
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
               URL: https://people.mozilla.org/~jorendorff/es6-draft.html#
                OS: Unspecified
            Status: ASSIGNED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ljharb at gmail.com

Many of the Array.prototype methods have bugs in that they use `array.length >>> 0` to handle array-like objects. This violates https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength.

I'll be creating a `ToLength` C++ function, and exposing it to builtins as `@ToLength`, to correct this, along with adding tests.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150423/002768b4/attachment.html>

More information about the webkit-unassigned mailing list