Skip to content

Commit 00398d6

Browse files
committed
Remove unrelated changes
1 parent 57fb5fa commit 00398d6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/compiler/sys.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ namespace ts {
605605
return getWScriptSystem();
606606
}
607607
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
608610
return getNodeSystem();
609611
}
610612
else if (typeof ChakraHost !== "undefined") {

src/harness/harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ namespace Harness {
15931593
return { unitName: libFile, content: io.readFile(libFile) };
15941594
}
15951595

1596-
if (Error) (<any>Error).stackTraceLimit = 25;
1596+
if (Error) (<any>Error).stackTraceLimit = 1;
15971597
}
15981598

15991599
// TODO: not sure why Utils.evalFile isn't working with this, eventually will concat it like old compiler instead of eval

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2188,6 +2188,7 @@ namespace ts {
21882188
}
21892189
return true;
21902190
}
2191+
21912192
return false;
21922193
}
21932194

@@ -2370,7 +2371,6 @@ namespace ts {
23702371

23712372
// skip open bracket
23722373
token = scanner.scan();
2373-
23742374
let i = 0;
23752375
// scan until ']' or EOF
23762376
while (token !== SyntaxKind.CloseBracketToken && token !== SyntaxKind.EndOfFileToken) {

0 commit comments

Comments
 (0)