Bug 157863

Summary: [ES6] Built-in functions, strict functions created using the Function constructor, and function create by bind method must not be created with 'caller' and 'arguments' own properties.
Product: WebKit Reporter: GSkachkov <gskachkov>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ashvayka
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://tc39.github.io/ecma262/#sec-forbidden-extensions
Bug Depends on: 152985    
Bug Blocks:    

GSkachkov
Reported 2016-05-18 14:53:35 PDT
According to ES6 spec: Built-in functions, strict functions created using the Function constructor, generator functions created using the Generator constructor, and functions created using the bind method also must not be created with such own properties(caller & arguments).
Attachments
Alexey Shvayka
Comment 1 2021-05-14 06:42:38 PDT
JSC doesn't create "caller" / "arguments" on all above-mentioned functions for a few years now (tested on r277026). I am adding these test cases as part of https://bugs.webkit.org/show_bug.cgi?id=225277.
Note You need to log in before you can comment on or make changes to this bug.