Bug 172420
| Summary: | [JSC] Object.assign should have a fast path for usual final objects | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> |
| Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> |
| Status: | NEW | ||
| Severity: | Normal | CC: | fpizlo, saam, sam |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Yusuke Suzuki
Object.assign performs [[Put]] in its loop. So it can invoke setters. That's why we need to check @propertyIsEnumerable for each key.
But, if we know that object does not have such a thing, we can drop this @propertyIsEnumerable checks completely.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |