Minor baseline adjustment

This commit is contained in:
Jason Freeman
2015-03-05 11:52:00 -08:00
parent fecd20a3db
commit 835c84f834
4 changed files with 7 additions and 5 deletions

View File

@@ -2,6 +2,8 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of1.ts(1,1): error TS
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of1.ts (1 errors) ====
for (var v of []) { }
for (var v of ['a', 'b', 'c']) {
~~~
!!! error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
!!! error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
console.log(v);
}

View File

@@ -2,7 +2,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of13.ts(1,1): error T
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of13.ts (1 errors) ====
for (let v of []) {
for (let v of ['a', 'b', 'c']) {
~~~
!!! error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
var x = v;

View File

@@ -2,7 +2,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of3.ts(1,1): error TS
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of3.ts (1 errors) ====
for (var v of [])
for (var v of ['a', 'b', 'c'])
~~~
!!! error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
var x = v;

View File

@@ -5,7 +5,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of8.ts(4,1): error TS
function foo() {
return { x: 0 };
}
for (foo().x of []) {
for (foo().x of ['a', 'b', 'c']) {
~~~
!!! error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
var p = foo().x;