Closed Bug 1745030 Opened 4 years ago Closed 4 years ago

ES Lint incorrectly reports structuredClone as undefined in js files.

Categories

(Developer Infrastructure :: Lint and Formatting, defect)

defect

Tracking

(firefox97 fixed)

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: bigiri, Assigned: standard8)

References

Details

Attachments

(1 file)

ES Lint incorrectly reports structuredClone as undefined in JS files.

In the patch for Bug 1733621 I had to use // eslint-disable-next-line no-undef to use structuredClone without linting errors.

Mark, do you know how to fix this - do we need to just wait for a newer eslint/node version to have a better idea of ES.next globals, or do we already have a mozilla-specific list of additions or similar?

Flags: needinfo?(standard8)
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d0ae77b4e5e2 Improve structure and documentation around globals defined in eslint-plugin-mozilla and add structuredClone. r=Gijs
Flags: needinfo?(standard8)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Regressions: 1755297
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: