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 = {
1414    } , 
1515    createServer : {  [ READ ] : {  supported : [ "0.3.2" ]  }  } , 
1616    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 " ]  }  } , 
1818    DEFAULT_ECDH_CURVE : {  [ READ ] : {  supported : [ "0.11.13" ]  }  } , 
1919    DEFAULT_MAX_VERSION : {  [ READ ] : {  supported : [ "11.4.0" ]  }  } , 
2020    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(
267267                    code : "new Buffer(123)" , 
268268                    options : [ {  version : "6.0.0"  } ] , 
269269                } , 
270+                 { 
271+                     code : "require('tls').DEFAULT_CIPHERS" , 
272+                     options : [ {  version : "18.0.0"  } ] , 
273+                 } , 
270274            ] , 
271275            invalid : [ 
272276                { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments