File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed 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