Remove unrelated changes

This commit is contained in:
Ryan Cavanaugh 2016-01-22 15:41:00 -08:00
parent 57fb5fa67b
commit 00398d6c9e
3 changed files with 4 additions and 2 deletions

View file

@ -605,6 +605,8 @@ namespace ts {
return getWScriptSystem();
}
else if (typeof process !== "undefined" && process.nextTick && !process.browser && typeof require !== "undefined") {
// process and process.nextTick checks if current environment is node-like
// process.browser check excludes webpack and browserify
return getNodeSystem();
}
else if (typeof ChakraHost !== "undefined") {

View file

@ -1593,7 +1593,7 @@ namespace Harness {
return { unitName: libFile, content: io.readFile(libFile) };
}
if (Error) (<any>Error).stackTraceLimit = 25;
if (Error) (<any>Error).stackTraceLimit = 1;
}
// TODO: not sure why Utils.evalFile isn't working with this, eventually will concat it like old compiler instead of eval

View file

@ -2188,6 +2188,7 @@ namespace ts {
}
return true;
}
return false;
}
@ -2370,7 +2371,6 @@ namespace ts {
// skip open bracket
token = scanner.scan();
let i = 0;
// scan until ']' or EOF
while (token !== SyntaxKind.CloseBracketToken && token !== SyntaxKind.EndOfFileToken) {