Open Bug 2031740 Opened 4 months ago Updated 4 months ago

Should the promise allocated inside internal await be debuggable

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mgaudet, Unassigned)

References

(Blocks 2 open bugs)

Details

Inside of InternalAwait we allocate a promise with unforgeableResolve.

This promise gets the normal debugger treatment:

  • the debugger API can see this browser
  • We track PromiseDebugInfo

In some benchmarks you can actually see this. So I am left wondering: should we actually make this promise much more stripped down and avoid ever doing tracking like this?

(Async-fs is an example here, and the thing I spotted was saving the resolution site)

See Also: → 1835087
Blocks: jetstream3
Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.