File tree 2 files changed +5
-1
lines changed
lib/unsupported-features/node-builtins-modules
tests/lib/rules/no-unsupported-features
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const buffer = {
23
23
} ,
24
24
Buffer : {
25
25
[ READ ] : { supported : [ "0.1.90" ] } ,
26
- [ CONSTRUCT ] : { deprecated : [ "6.0.0" ] } ,
26
+ [ CONSTRUCT ] : { supported : [ "0.1.90" ] , deprecated : [ "6.0.0" ] } ,
27
27
alloc : { [ READ ] : { supported : [ "5.10.0" , "4.5.0" ] } } ,
28
28
allocUnsafe : { [ READ ] : { supported : [ "5.10.0" , "4.5.0" ] } } ,
29
29
allocUnsafeSlow : { [ READ ] : { supported : [ "5.12.0" , "4.5.0" ] } } ,
Original file line number Diff line number Diff line change @@ -218,6 +218,10 @@ new RuleTester({ languageOptions: { sourceType: "module" } }).run(
218
218
} ,
219
219
] ,
220
220
} ,
221
+ {
222
+ code : "new Buffer(123)" ,
223
+ options : [ { version : "6.0.0" } ] ,
224
+ } ,
221
225
] ,
222
226
invalid : [
223
227
{
You can’t perform that action at this time.
0 commit comments