File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -605,6 +605,8 @@ namespace ts {
605
605
return getWScriptSystem ( ) ;
606
606
}
607
607
else if ( typeof process !== "undefined" && process . nextTick && ! process . browser && typeof require !== "undefined" ) {
608
+ // process and process.nextTick checks if current environment is node-like
609
+ // process.browser check excludes webpack and browserify
608
610
return getNodeSystem ( ) ;
609
611
}
610
612
else if ( typeof ChakraHost !== "undefined" ) {
Original file line number Diff line number Diff line change @@ -1593,7 +1593,7 @@ namespace Harness {
1593
1593
return { unitName : libFile , content : io . readFile ( libFile ) } ;
1594
1594
}
1595
1595
1596
- if ( Error ) ( < any > Error ) . stackTraceLimit = 25 ;
1596
+ if ( Error ) ( < any > Error ) . stackTraceLimit = 1 ;
1597
1597
}
1598
1598
1599
1599
// TODO: not sure why Utils.evalFile isn't working with this, eventually will concat it like old compiler instead of eval
Original file line number Diff line number Diff line change @@ -2188,6 +2188,7 @@ namespace ts {
2188
2188
}
2189
2189
return true ;
2190
2190
}
2191
+
2191
2192
return false ;
2192
2193
}
2193
2194
@@ -2370,7 +2371,6 @@ namespace ts {
2370
2371
2371
2372
// skip open bracket
2372
2373
token = scanner . scan ( ) ;
2373
-
2374
2374
let i = 0 ;
2375
2375
// scan until ']' or EOF
2376
2376
while ( token !== SyntaxKind . CloseBracketToken && token !== SyntaxKind . EndOfFileToken ) {
You can’t perform that action at this time.
0 commit comments