File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ export default [
120
120
{
121
121
languageOptions : {
122
122
globals : {
123
+ AsyncDisposableStack : 'readonly' ,
123
124
ByteLengthQueuingStrategy : 'readonly' ,
124
125
CompressionStream : 'readonly' ,
125
126
CountQueuingStrategy : 'readonly' ,
@@ -128,6 +129,7 @@ export default [
128
129
Crypto : 'readonly' ,
129
130
CryptoKey : 'readonly' ,
130
131
DecompressionStream : 'readonly' ,
132
+ DisposableStack : 'readonly' ,
131
133
EventSource : 'readable' ,
132
134
fetch : 'readonly' ,
133
135
Float16Array : 'readonly' ,
Original file line number Diff line number Diff line change @@ -356,11 +356,22 @@ export default [
356
356
name : 'SubtleCrypto' ,
357
357
message : "Use `const { SubtleCrypto } = require('internal/crypto/webcrypto');` instead of the global." ,
358
358
} ,
359
- // Float16Array is not available in primordials because it's only available with --js-float16array CLI flag.
359
+ // Float16Array is not available in primordials because it can be
360
+ // disabled with --no-js-float16array CLI flag.
360
361
{
361
362
name : 'Float16Array' ,
362
363
message : 'Use `const { Float16Array } = globalThis;` instead of the global.' ,
363
364
} ,
365
+ // DisposableStack and AsyncDisposableStack are not available in primordials because they can be
366
+ // disabled with --no-js-explicit-resource-management CLI flag.
367
+ {
368
+ name : 'DisposableStack' ,
369
+ message : 'Use `const { DisposableStack } = globalThis;` instead of the global.' ,
370
+ } ,
371
+ {
372
+ name : 'AsyncDisposableStack' ,
373
+ message : 'Use `const { AsyncDisposableStack } = globalThis;` instead of the global.' ,
374
+ } ,
364
375
] ,
365
376
'no-restricted-modules' : [
366
377
'error' ,
You can’t perform that action at this time.
0 commit comments