[Webkit-unassigned] [Bug 247790] New: Using async function to Symbol.iterator results in infinite loop
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 11 01:24:35 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=247790
Bug ID: 247790
Summary: Using async function to Symbol.iterator results in
infinite loop
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
var obj = {
[ Symbol . iterator ]: async ( ) => {
await 0 ;
while ( true ) ;
}
}
for ( { } of obj );
______________________________
Hello,
Executing the input.js using JSC, it throws TypeError but never terminates.
Running the input.js with JSC results in:
---
$ jsc input.js
Exception: TypeError: undefined is not a function (near '...{ } of obj...')
global code at input.js:8:10
// infinite loop
---
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/7b718bdc/attachment.htm>
More information about the webkit-unassigned
mailing list