mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-23 10:04:47 -05:00
Merge pull request #3155 from Microsoft/useCRLFByDefaultInTest
Use crlf by default in test
This commit is contained in:
@@ -45,10 +45,12 @@ module Utils {
|
||||
export function getExecutionEnvironment() {
|
||||
if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") {
|
||||
return ExecutionEnvironment.CScript;
|
||||
} else if (typeof window !== "undefined") {
|
||||
}
|
||||
else if (typeof window !== "undefined") {
|
||||
return ExecutionEnvironment.Browser;
|
||||
} else {
|
||||
return ExecutionEnvironment.Node;
|
||||
}
|
||||
else {
|
||||
return ExecutionEnvironment.Node;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -945,6 +947,7 @@ module Harness {
|
||||
options = options || { noResolve: false };
|
||||
options.target = options.target || ts.ScriptTarget.ES3;
|
||||
options.module = options.module || ts.ModuleKind.None;
|
||||
options.newLine = options.newLine || ts.NewLineKind.CarriageReturnLineFeed;
|
||||
options.noErrorTruncation = true;
|
||||
|
||||
if (settingsCallback) {
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
var foo: {id:number;} = {id:4};
|
||||
|
||||
//// [contextualTyping1.js]
|
||||
var foo = { id: 4 };\n
|
||||
var foo = { id: 4 };
|
||||
|
||||
Reference in New Issue
Block a user