| Summary: | ES6: Object Literal Extensions - Methods | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||||||
| Component: | JavaScriptCore | Assignee: | Joseph Pecoraro <joepeck> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | commit-queue, ggaren, joepeck, rniwa | ||||||||||
| Priority: | P2 | ||||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Joseph Pecoraro
2015-03-06 01:33:42 PST
Created attachment 248054 [details]
[PATCH] Proposed Fix
Requires a patch not yet landed (the PutType stuff).
Created attachment 248055 [details]
[PATCH] For Bots
It should be trivial to extend this to support computed methods as well:
var o = {
["foo" + "bar"]() { return 10; }
};
o.foobar();
Since it is highly related, I'll put up a new patch.
Created attachment 248085 [details]
[PATCH] Proposed Fix - With Computed Method Names
Still requires a previous change, so this won't build on the bots.
Created attachment 248095 [details]
[PATCH] Proposed Fix - With Computed Method Names
Comment on attachment 248095 [details]
[PATCH] Proposed Fix - With Computed Method Names
r=me
Comment on attachment 248095 [details] [PATCH] Proposed Fix - With Computed Method Names Clearing flags on attachment: 248095 Committed r181183: <http://trac.webkit.org/changeset/181183> All reviewed patches have been landed. Closing bug. |