Bug 298508

Summary: [JSC] Add `async` prefix for async function frame on stack trace
Product: WebKit Reporter: Sosuke Suzuki <sosuke>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sosuke Suzuki
Reported 2025-09-06 20:04:14 PDT
When we have code like this: async function one() { await two(); } async function two() { await three(); } async function three() { await 3; throw new Error("error from three"); } V8 generates stack traces like the following. Note that async functions that were executing before being suspended have an "async" prefix in the stack trace: Error: error from three at three (./WebKitBuild/Debug/test.js:3:41) at async two (./WebKitBuild/Debug/test.js:2:24) at async one (./WebKitBuild/Debug/test.js:1:24) Currently, JSC's async stack traces do not add this prefix.
Attachments
Sosuke Suzuki
Comment 1 2025-09-06 20:05:24 PDT
EWS
Comment 2 2025-09-06 22:58:27 PDT
Committed 299668@main (5dd8842ba4a0): <https://commits.webkit.org/299668@main> Reviewed commits have been landed. Closing PR #50418 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-09-06 22:59:14 PDT
Note You need to log in before you can comment on or make changes to this bug.