[Webkit-unassigned] [Bug 247784] New: Async arrow function being `undefined`
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 11 00:53:30 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=247784
Bug ID: 247784
Summary: Async arrow function being `undefined`
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
Hello,
`x` is `undefined` after executing `let x = async x => { for await ( { x } of [ 0 ] ) ; } ; x ( ) ;` in WebKit JSC,
but I think that it is expected to be `async x => ....`:
---
$ jsc
>>> let x = async x => { for await ( { x } of [ 0 ] ) ; } ; x ( ) ;
[object Promise]
>>> x
undefined
>>>
---
while other engines behave like:
---
# V8
V8 version 10.9.0
d8> let x = async x => { for await ( { x } of [ 0 ] ) ; } ; x ( ) ;
[object Promise]
d8> x
async x => { for await ( { x } of [ 0 ] ) ; }
d8>
---
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/20221111/fac3fc6d/attachment-0001.htm>
More information about the webkit-unassigned
mailing list