| Summary: | Wrong names of getter and setter "0" for class | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kanguk Lee <p51lee> |
| Component: | JavaScriptCore | Assignee: | David Degazio <d_degazio> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | mark.lam, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Pull request: https://github.com/WebKit/WebKit/pull/6494 Committed 256740@main (ad1302fe8297): <https://commits.webkit.org/256740@main> Reviewed commits have been landed. Closing PR #6494 and removing active labels. |
// input.js class x { get 0 ( ) { } } print( Object.getOwnPropertyDescriptor(x.prototype, "0").get.name ); _______________________________________________________________ Hello, JSC generates the name of the getter `get 0 ( ) { }` / `set 0 ( ) { }` as "get " / "set " but it should be "get 0" / "set 0". Running the input.js with JSC prints --- $ jsc input.js get --- while other engines behave like --- # V8 (used console.log) $ node input.js get 0 # GraalJS $ js input.js get 0 --- WebKit version: 615.1.10