Bug 62264

Summary: reduce and reduceRight bind callback's this to null rather than undefined
Product: WebKit Reporter: Mark S. Miller <erights>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: RESOLVED FIXED    
Severity: Trivial CC: erights, mhahnenberg, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Mark S. Miller
Reported 2011-06-07 22:02:35 PDT
Both [2,3].reduce(function(){'use strict';return this;}) and [2,3].reduceRight(function(){'use strict';return this;}) return null rather than undefined. This violates step 9.c.ii of sections 15.4.4.21 and 15.4.4.22 of ES5.1.
Attachments
Patch (6.96 KB, patch)
2011-07-25 15:10 PDT, Mark Hahnenberg
no flags
Mark S. Miller
Comment 1 2011-06-07 22:02:58 PDT
Mark Hahnenberg
Comment 2 2011-07-25 15:10:19 PDT
WebKit Review Bot
Comment 3 2011-07-26 23:03:07 PDT
Comment on attachment 101921 [details] Patch Clearing flags on attachment: 101921 Committed r91824: <http://trac.webkit.org/changeset/91824>
WebKit Review Bot
Comment 4 2011-07-26 23:03:11 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.