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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 3 08:57:03 PDT 2022


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

            Bug ID: 247429
           Summary: Order of properties for class as static field
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: p51lee at kaist.ac.kr

// input.js
class x { static y = class { } ; }
print(Object.getOwnPropertyNames(x.y));
__________________________________________

Hello,

Executing the input.js using JSC prints `length,prototype,name`.
However, it is expected to print `length,name,prototype` since 'DefinePropertyOrThrow' (ECMA262 2022 section 7.3.9)
is called 3 times with argument in order of "length", "name" and "prototype".

Running the input.js with JSC prints:

---
$ jsc input.js
length,prototype,name
---

while other engines behave like:

---
# V8
$ node input.js
length,name,prototype

# GraalJS
$ js input.js
length,name,prototype
---


WebKit version: 615.1.10

-- 
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/20221103/33ff6efe/attachment.htm>


More information about the webkit-unassigned mailing list