Bug 247725 - Computed Name in Async Method
Summary: Computed Name in Async Method
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ross Kirsling
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-10 04:08 PST by Kanguk Lee
Modified: 2022-11-29 06:15 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kanguk Lee 2022-11-10 04:08:05 PST
// input.js
class x { async [ "f" ] ( ) { } }
print(x.prototype.f.name);
_____________________

Hello,

Executing the input.js using JSC prints "async", but "f" is expected.

Running the input.js with JSC results in:

---
$ jsc input.js
async
---

while other engines behave like:

---
# V8 (used console.log)
$ node input.js
f

# GraalJS
$ js input.js
f
---


WebKit version: 615.1.10
Comment 1 Radar WebKit Bug Importer 2022-11-10 12:30:21 PST
<rdar://problem/102206457>
Comment 2 Kanguk Lee 2022-11-11 00:39:41 PST
I've found more cases below:

let x = { 0 : x => { } , } ; // x["0"].name is "" but "0" is expected.
Comment 3 Ross Kirsling 2022-11-29 03:52:15 PST
Pull request: https://github.com/WebKit/WebKit/pull/6913
Comment 4 EWS 2022-11-29 06:15:23 PST
Committed 257114@main (c99e9b77dcb6): <https://commits.webkit.org/257114@main>

Reviewed commits have been landed. Closing PR #6913 and removing active labels.