Update the ESLint env
to use "es2021"
Currently this is inconsistent, since we're using ECMAScript 2021 in the parser options.
This commit is contained in:
parent
d4c4f5d4e5
commit
eb015ca023
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es2020": true,
|
"es2021": true,
|
||||||
"worker": true,
|
"worker": true,
|
||||||
"amd": true,
|
"amd": true,
|
||||||
},
|
},
|
||||||
|
@ -51,15 +51,12 @@ class App extends PDFObject {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this._timeoutIds = new WeakMap();
|
this._timeoutIds = new WeakMap();
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
if (typeof FinalizationRegistry !== "undefined") {
|
if (typeof FinalizationRegistry !== "undefined") {
|
||||||
// About setTimeOut/setInterval return values (specs):
|
// About setTimeOut/setInterval return values (specs):
|
||||||
// The return value of this method must be held in a
|
// The return value of this method must be held in a
|
||||||
// JavaScript variable.
|
// JavaScript variable.
|
||||||
// Otherwise, the timeout object is subject to garbage-collection,
|
// Otherwise, the timeout object is subject to garbage-collection,
|
||||||
// which would cause the clock to stop.
|
// which would cause the clock to stop.
|
||||||
|
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
this._timeoutIdsRegistry = new FinalizationRegistry(
|
this._timeoutIdsRegistry = new FinalizationRegistry(
|
||||||
this._cleanTimeout.bind(this)
|
this._cleanTimeout.bind(this)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user