File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
lib/unsupported-features/node-builtins-modules
tests/lib/rules/no-unsupported-features Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const tls = {
14
14
} ,
15
15
createServer : { [ READ ] : { supported : [ "0.3.2" ] } } ,
16
16
CryptoStream : { [ READ ] : { supported : [ "0.3.4" ] , deprecated : [ "0.11.3" ] } } ,
17
- DEFAULT_CIPHERS : { [ READ ] : { supported : [ "19.8.0" , "18.16.0 "] } } ,
17
+ DEFAULT_CIPHERS : { [ READ ] : { supported : [ "0.11.3 " ] } } ,
18
18
DEFAULT_ECDH_CURVE : { [ READ ] : { supported : [ "0.11.13" ] } } ,
19
19
DEFAULT_MAX_VERSION : { [ READ ] : { supported : [ "11.4.0" ] } } ,
20
20
DEFAULT_MIN_VERSION : { [ READ ] : { supported : [ "11.4.0" ] } } ,
Original file line number Diff line number Diff line change @@ -267,6 +267,10 @@ new RuleTester({ languageOptions: { sourceType: "module" } }).run(
267
267
code : "new Buffer(123)" ,
268
268
options : [ { version : "6.0.0" } ] ,
269
269
} ,
270
+ {
271
+ code : "require('tls').DEFAULT_CIPHERS" ,
272
+ options : [ { version : "18.0.0" } ] ,
273
+ } ,
270
274
] ,
271
275
invalid : [
272
276
{
You can’t perform that action at this time.
0 commit comments