[Webkit-unassigned] [Bug 157461] ES6: Classes: Should be allowed to assign values to static method with name "arguments" and "caller"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 14 04:51:58 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=157461

Alexey Shvayka <shvaikalesh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |shvaikalesh at gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #1 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to GSkachkov from comment #0)
> class C { 
>     static caller() { return 'abc'; } 
> }

r225845 fixed JSFunction::put() and JSFunction::defineOwnProperty() to perform ordinary [[Set]] / [[DefineOwnProperty]] for classes and strict functions.
I am adding this test case as part of https://bugs.webkit.org/show_bug.cgi?id=225277.

> C.arguments = function () {} ??? // In Chrome && Firefox - TypeError

This throws TypeError because of https://tc39.es/ecma262/#sec-addrestrictedfunctionproperties.

*** This bug has been marked as a duplicate of bug 163579 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210514/06c0262f/attachment-0001.htm>


More information about the webkit-unassigned mailing list