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 {
40
40
ReflectApply,
41
41
SafeMap,
42
42
SafeWeakMap,
43
+ StringPrototypeRepeat,
43
44
Symbol,
44
45
} = primordials ;
45
46
@@ -131,7 +132,7 @@ const domainRequireStack = new Error('require(`domain`) at this point').stack;
131
132
const { setUncaughtExceptionCaptureCallback } = process ;
132
133
process . setUncaughtExceptionCaptureCallback = function ( fn ) {
133
134
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 } ` ;
135
136
throw err ;
136
137
} ;
137
138
Original file line number Diff line number Diff line change @@ -1526,15 +1526,15 @@ function complete(line, callback) {
1526
1526
let p ;
1527
1527
if ( ( typeof obj === 'object' && obj !== null ) ||
1528
1528
typeof obj === 'function' ) {
1529
- memberGroups . push ( filteredOwnPropertyNames ( obj ) ) ;
1529
+ ArrayPrototypePush ( memberGroups , filteredOwnPropertyNames ( obj ) ) ;
1530
1530
p = ObjectGetPrototypeOf ( obj ) ;
1531
1531
} else {
1532
1532
p = obj . constructor ? obj . constructor . prototype : null ;
1533
1533
}
1534
1534
// Circular refs possible? Let's guard against that.
1535
1535
let sentinel = 5 ;
1536
1536
while ( p !== null && sentinel -- !== 0 ) {
1537
- memberGroups . push ( filteredOwnPropertyNames ( p ) ) ;
1537
+ ArrayPrototypePush ( memberGroups , filteredOwnPropertyNames ( p ) ) ;
1538
1538
p = ObjectGetPrototypeOf ( p ) ;
1539
1539
}
1540
1540
} catch {
You can’t perform that action at this time.
0 commit comments