Bug 143659

Summary: String.prototype.startsWith/endsWith/includes have wrong length in r182673
Product: WebKit Reporter: Jordan Harband <ljharb>
Component: JavaScriptCoreAssignee: Jordan Harband <ljharb>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Jordan Harband 2015-04-12 23:06:58 PDT
In r182673 nightly, String.prototype.startsWith and String.prototype.endsWith both have a length of 0. According to https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.startswith and https://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.endswith the length of both should explicitly be 1, since they have 1 required argument.
Comment 1 Jordan Harband 2015-04-15 16:04:06 PDT
*** Bug 143660 has been marked as a duplicate of this bug. ***
Comment 2 Jordan Harband 2015-04-15 16:18:34 PDT
Created attachment 250881 [details]
Patch
Comment 3 WebKit Commit Bot 2015-04-15 17:16:14 PDT
Comment on attachment 250881 [details]
Patch

Clearing flags on attachment: 250881

Committed r182872: <http://trac.webkit.org/changeset/182872>
Comment 4 WebKit Commit Bot 2015-04-15 17:16:17 PDT
All reviewed patches have been landed.  Closing bug.