WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 62264
reduce and reduceRight bind callback's this to null rather than undefined
https://bugs.webkit.org/show_bug.cgi?id=62264
Summary
reduce and reduceRight bind callback's this to null rather than undefined
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark S. Miller
Comment 1
2011-06-07 22:02:58 PDT
See
http://code.google.com/p/v8/issues/detail?id=1436
Mark Hahnenberg
Comment 2
2011-07-25 15:10:19 PDT
Created
attachment 101921
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug