File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2222'use strict' ;
2323
2424const {
25- FunctionPrototype,
2625 ObjectAssign,
2726 ObjectDefineProperty,
2827 ObjectSetPrototypeOf,
@@ -112,7 +111,7 @@ const kPskIdentityHint = Symbol('pskidentityhint');
112111const kPendingSession = Symbol ( 'pendingSession' ) ;
113112const kIsVerified = Symbol ( 'verified' ) ;
114113
115- const noop = FunctionPrototype ;
114+ const noop = ( ) => { } ;
116115
117116let ipServernameWarned = false ;
118117let tlsTracingWarned = false ;
Original file line number Diff line number Diff line change @@ -492,16 +492,18 @@ export default [
492492 {
493493 files : [
494494 'lib/_http_*.js' ,
495+ 'lib/_tls_*.js' ,
495496 'lib/http.js' ,
496497 'lib/http2.js' ,
497498 'lib/internal/http.js' ,
498499 'lib/internal/http2/*.js' ,
500+ 'lib/tls.js' ,
499501 ] ,
500502 rules : {
501503 'no-restricted-syntax' : [
502504 ...noRestrictedSyntax ,
503505 {
504- selector : 'VariableDeclarator:has(.init[name="primordials"]) Identifier[name=/Prototype/]:not([name=/^(Object|Reflect)(Get|Set)PrototypeOf$/])' ,
506+ selector : 'VariableDeclarator:has(.init[name="primordials"]) Identifier[name=/Prototype[A-Z] /]:not([name=/^(Object|Reflect)(Get|Set)PrototypeOf$/])' ,
505507 message : 'We do not use prototype primordials in this file' ,
506508 } ,
507509 ] ,
You can’t perform that action at this time.
0 commit comments