Closed Bug 1726037 Opened 3 years ago Closed 3 years ago

browser_jsterm_autocomplete_race_on_enter.js has an unexpected comma operator

Categories

(DevTools :: Console, defect)

defect

Tracking

(firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: standard8, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

I'm looking to update ESLint, and it is picking up an instance of a unexpected comma operator:

devtools/client/webconsole/test/browser/browser_jsterm_autocomplete_race_on_enter.js
132:35 error Unexpected use of comma operator. no-sequences (eslint)

This was introduced by bug 1595068. The code in question is:

https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/devtools/client/webconsole/test/browser/browser_jsterm_autocomplete_race_on_enter.js#132

await Promise.all[(onPopupClosed, onMessage)];

The brackets are the wrong way around. If I try to fix it, then the test hangs. Nicolas would you be able to take a look?

Flags: needinfo?(nchevobbe)

sure, let me pick that up

(sorry for the late response, I'm just back from PTO)

Flags: needinfo?(nchevobbe)

The test had a weird syntax which was preventing a Promise.all call
to be actually completed.
Fixing the syntax error showed a flaw in the test so it had to be
fixed.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0581e2bb02c5
[devtools] Fix browser_jsterm_autocomplete_race_on_enter . r=bomsy.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: