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: | JavaScriptCore | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Shvayka
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.