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

Jordan Harband
Reported 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.
Attachments
Patch (6.25 KB, patch)
2015-04-15 16:18 PDT, Jordan Harband
no flags
Jordan Harband
Comment 1 2015-04-15 16:04:06 PDT
*** Bug 143660 has been marked as a duplicate of this bug. ***
Jordan Harband
Comment 2 2015-04-15 16:18:34 PDT
WebKit Commit Bot
Comment 3 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>
WebKit Commit Bot
Comment 4 2015-04-15 17:16:17 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.