Bug 172420

Summary: [JSC] Object.assign should have a fast path for usual final objects
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: NEW    
Severity: Normal CC: fpizlo, saam, sam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Yusuke Suzuki
Reported 2017-05-20 13:54:05 PDT
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
Note You need to log in before you can comment on or make changes to this bug.