[Webkit-unassigned] [Bug 247429] Order of properties for class as static field

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 10 12:52:22 PST 2022


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

--- Comment #8 from Kanguk Lee <p51lee at kaist.ac.kr> ---
Thanks for your comment.

Evaluation of class definition is described in section 15.7.14 (ref: https://262.ecma-international.org/#sec-runtime-semantics-classdefinitionevaluation).

1. "length" property

During the evaluation of ClassDefinitionEvaluation, length property is defined in line 14-b, CreateBuiltinFunction(line 10, ref: https://262.ecma-international.org/#sec-createbuiltinfunction). 

2. "name" property

It is defined right after when "length" property is defined; line 11-a of CreateBuiltinFunction.

3. "prototype" property

"prototype" property is defined in line 16 of ClassDefinitionEvaluation. In MakeConstructor(ref: https://262.ecma-international.org/#sec-makeconstructor) function, see line 6.


By the way, SpiderMonkey (Firefox) has a similar problem: https://bugzilla.mozilla.org/show_bug.cgi?id=1629803

-- 
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/20221110/512f9542/attachment.htm>


More information about the webkit-unassigned mailing list