File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -267,15 +267,13 @@ function withGlobal(_global) {
267267
268268 var matchedLineIndex = - 1 ;
269269 job . error . stack . split ( "\n" ) . some ( function ( line , i ) {
270- if ( ! addTimerReturnsObject ) {
271- // when not in node
272- // If we've matched a computed target line (e.g. setTimeout) then we
273- // don't need to look any further. Return true to stop iterating.
274- var matchedComputedTarget = line . match ( computedTargetPattern ) ;
275- if ( matchedComputedTarget ) {
276- matchedLineIndex = i ;
277- return true ;
278- }
270+ // If we've matched a computed target line (e.g. setTimeout) then we
271+ // don't need to look any further. Return true to stop iterating.
272+ var matchedComputedTarget = line . match ( computedTargetPattern ) ;
273+ /* istanbul ignore if */
274+ if ( matchedComputedTarget ) {
275+ matchedLineIndex = i ;
276+ return true ;
279277 }
280278
281279 // If we've matched a clock method line, then there may still be
You can’t perform that action at this time.
0 commit comments