Closed Bug 1587580 Opened 5 years ago Closed 5 years ago

Use the actual source filename and line number for SpecialPowers.spawn callback

Categories

(Testing :: Mochitest, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

SpecialPowers.spawn currently uses its caller's location as the source location when it re-evaluates its callback in the content process. Unfortunately, the callback is not always defined on the same line as the spawn() call, especially once "prettier" has done its mangling.

So let's just extract the actual source location from the callback instead. It will make debugging errors much easier.

Pushed by maglione.k@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/6f39a839d532
Use the actual source filename and line number for SpecialPowers.spawn callback. r=mccr8
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: