Open Bug 1153833 Opened 4 years ago Updated 2 years ago

Cleanup browser-test.js by using fat arrow functions

Categories

(Testing :: Mochitest, defect)

x86_64
Windows 7
defect
Not set

Tracking

(Not tracked)

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

While working on bug 1145049, which is unrelated, I ended up identifying a random bug in mochitest-browser. That, because of a misleading `this` reference in browser-test.js. Instead we should have been using `self`, binded few lines before.
ted suggested me to use fat arrow functions to prevent such bug again.
Here is a patch that refactor this file to use fat arrow functions.
Assignee: nobody → poirot.alex
Component: Mochitest Chrome → Mochitest
You need to log in before you can comment on or make changes to this bug.