| Summary: | The third parameter of a Map.prototype.forEach callback function is undefined | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Steve South <southsystems> | ||||
| Component: | JavaScriptCore | Assignee: | Matthew Mirman <mmirman> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | dpino, ggaren, mmirman, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Steve South
2014-11-10 05:09:12 PST
Created attachment 242741 [details]
Patch
The same change is necessary for Set. According to the ES6 spec [1]: "callbackfn is called with three arguments: the first two arguments are a value contained in the Set. The same value of passed for both arguments. The Set object being traversed is passed as the third argument." [1] http://people.mozilla.org/~jorendorff/es6-draft.html#sec-set.prototype.foreach Comment on attachment 242741 [details] Patch The map part was updated in http://trac.webkit.org/changeset/183374 And the set part in https://bugs.webkit.org/show_bug.cgi?id=144188 Comment on attachment 242741 [details]
Patch
r=me
|