File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
tests/baselines/reference Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,12 @@ module Utils {
45
45
export function getExecutionEnvironment ( ) {
46
46
if ( typeof WScript !== "undefined" && typeof ActiveXObject === "function" ) {
47
47
return ExecutionEnvironment . CScript ;
48
- } else if ( typeof window !== "undefined" ) {
48
+ }
49
+ else if ( typeof window !== "undefined" ) {
49
50
return ExecutionEnvironment . Browser ;
50
- } else {
51
- return ExecutionEnvironment . Node ;
51
+ }
52
+ else {
53
+ return ExecutionEnvironment . Node ;
52
54
}
53
55
}
54
56
@@ -945,6 +947,7 @@ module Harness {
945
947
options = options || { noResolve : false } ;
946
948
options . target = options . target || ts . ScriptTarget . ES3 ;
947
949
options . module = options . module || ts . ModuleKind . None ;
950
+ options . newLine = options . newLine || ts . NewLineKind . CarriageReturnLineFeed ;
948
951
options . noErrorTruncation = true ;
949
952
950
953
if ( settingsCallback ) {
Original file line number Diff line number Diff line change 2
2
var foo : { id :number ; } = { id :4 } ;
3
3
4
4
//// [contextualTyping1.js]
5
- var foo = { id : 4 } ; \n
5
+ var foo = { id : 4 } ;
You can’t perform that action at this time.
0 commit comments