Closed Bug 1382258 Opened 7 years ago Closed 7 years ago

[jsdbg2] Debugger fails to recognize async functions

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jimb, Assigned: jimb)

References

Details

Attachments

(1 file)

In some cases, the Debugger API doesn't recognize `async function` functions as scripted functions. For example, the `Debugger.Object.prototype.script` accessor returns `undefined` when applied to an async function.

I have tests, and I'm working on a patch.
Attachment #8890145 - Flags: review?(ttromey)
Comment on attachment 8890145 [details] [diff] [review]
Handle async functions properly in Debugger API.

Review of attachment 8890145 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for doing this.  This looks good.
Attachment #8890145 - Flags: review?(ttromey) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9ab04bf5afc5
Handle async functions properly in Debugger API. r=tromey
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/9ab04bf5afc5
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Depends on: 1386026
You need to log in before you can comment on or make changes to this bug.