Closed
Bug 1407104
Opened 8 years ago
Closed 8 years ago
Use "let" rather than "var" in reftest harness JS
Categories
(Testing :: Reftest, enhancement)
Testing
Reftest
Tracking
(firefox58 fixed)
RESOLVED
FIXED
mozilla58
| Tracking | Status | |
|---|---|---|
| firefox58 | --- | fixed |
People
(Reporter: tschneider, Assigned: tschneider)
Details
Attachments
(1 file, 1 obsolete file)
|
8.23 KB,
patch
|
Details | Diff | Splinter Review |
As suggested in point 2 of https://bugzilla.mozilla.org/show_bug.cgi?id=1299848#c68, we should prefer using "let" over "var" for better scoping & to avoid subtle bugs & leakage.
| Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8916858 -
Flags: review?(dholbert)
Comment 2•8 years ago
|
||
Comment on attachment 8916858 [details] [diff] [review]
Replace usage of "var" with "let"
Review of attachment 8916858 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks! Looks good -- just 2 commit message nits
> Bug 1407104 - Follow up 1299848 - Use "let" rather than "var"
(1) Please remove the "Follow up 1299848" chunk. (If you want to include that info, let's put it in a second line (as bonus information outside of the main commit message), and s/1299848/bug 1299848/ so it's clearer what that number represents.)
(2) Please add "in reftest harness JS" at the end of the commit message, so it's clearer what area of code you're touching.
So this should end up looking like:
Bug 1407104 - Use "let" rather than "var" in reftest harness JS. r=dholbert
(with an optional additional line to mention the other bug, if you want)
Attachment #8916858 -
Flags: review?(dholbert) → review+
| Assignee | ||
Comment 3•8 years ago
|
||
Better commit message.
Attachment #8916858 -
Attachment is obsolete: true
Pushed by tschneider@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f7ed7b8415b
Use "let" rather than "var" in reftest harness JS. r=dholbert
Updated•8 years ago
|
Assignee: nobody → tschneider
Component: Printing: Output → Reftest
Product: Core → Testing
Summary: Follow up 1299848 - Use "let" rather than "var" → Use "let" rather than "var" in reftest harness JS
Version: unspecified → Trunk
Comment 5•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•