Back out "Remove Dead Code in WWW JS" (#33673)

Original commit changeset: 65c4decb56

This was removed by dead code removal. Adding back the TODO with
commented out code.
This commit is contained in:
Jan Kassens 2025-06-30 15:26:45 -04:00 committed by GitHub
parent 65c4decb56
commit 6a3d16ca74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4661,6 +4661,12 @@ function abortTask(task: Task, request: Request, error: mixed): void {
if (node !== null && typeof node === 'object') { if (node !== null && typeof node === 'object') {
// Push a fake component stack frame that represents the await. // Push a fake component stack frame that represents the await.
pushHaltedAwaitOnComponentStack(task, node._debugInfo); pushHaltedAwaitOnComponentStack(task, node._debugInfo);
/*
if (task.thenableState !== null) {
// TODO: If we were stalled inside use() of a Client Component then we should
// rerender to get the stack trace from the use() call.
}
*/
} }
} }