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 @@ -40,6 +40,7 @@ const {
4040 ReflectApply,
4141 SafeMap,
4242 SafeWeakMap,
43+ StringPrototypeRepeat,
4344 Symbol,
4445} = primordials ;
4546
@@ -131,7 +132,7 @@ const domainRequireStack = new Error('require(`domain`) at this point').stack;
131132const { setUncaughtExceptionCaptureCallback } = process ;
132133process . setUncaughtExceptionCaptureCallback = function ( fn ) {
133134 const err = new ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE ( ) ;
134- err . stack = err . stack + '\n' + '-' . repeat ( 40 ) + '\n' + domainRequireStack ;
135+ err . stack += `\n ${ StringPrototypeRepeat ( '-' , 40 ) } \n ${ domainRequireStack } ` ;
135136 throw err ;
136137} ;
137138
Original file line number Diff line number Diff line change @@ -1528,15 +1528,15 @@ function complete(line, callback) {
15281528 let p ;
15291529 if ( ( typeof obj === 'object' && obj !== null ) ||
15301530 typeof obj === 'function' ) {
1531- memberGroups . push ( filteredOwnPropertyNames ( obj ) ) ;
1531+ ArrayPrototypePush ( memberGroups , filteredOwnPropertyNames ( obj ) ) ;
15321532 p = ObjectGetPrototypeOf ( obj ) ;
15331533 } else {
15341534 p = obj . constructor ? obj . constructor . prototype : null ;
15351535 }
15361536 // Circular refs possible? Let's guard against that.
15371537 let sentinel = 5 ;
15381538 while ( p !== null && sentinel -- !== 0 ) {
1539- memberGroups . push ( filteredOwnPropertyNames ( p ) ) ;
1539+ ArrayPrototypePush ( memberGroups , filteredOwnPropertyNames ( p ) ) ;
15401540 p = ObjectGetPrototypeOf ( p ) ;
15411541 }
15421542 } catch {
You can’t perform that action at this time.
0 commit comments