mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-29 19:42:39 -05:00
Minor baseline adjustment
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user