Skip to content

Commit 0d4913d

Browse files
committed
baseline changes in other tests accepted
1 parent 181d126 commit 0d4913d

12 files changed

+40
-40
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/bug25434.js(4,9): error TS2304: Cannot find name 'b'.
1+
tests/cases/compiler/bug25434.js(4,9): error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
22

33

44
==== tests/cases/compiler/bug25434.js (1 errors) ====
@@ -7,5 +7,5 @@ tests/cases/compiler/bug25434.js(4,9): error TS2304: Cannot find name 'b'.
77

88
Test(({ b = '5' } = {}));
99
~
10-
!!! error TS2304: Cannot find name 'b'.
10+
!!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
1111

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
tests/cases/compiler/incompleteObjectLiteral1.ts(1,12): error TS2304: Cannot find name 'aa'.
1+
tests/cases/compiler/incompleteObjectLiteral1.ts(1,12): error TS18004: No value exists in scope for the shorthand property 'aa'. Either declare one or provide an initializer.
22
tests/cases/compiler/incompleteObjectLiteral1.ts(1,14): error TS1005: ',' expected.
33

44

55
==== tests/cases/compiler/incompleteObjectLiteral1.ts (2 errors) ====
66
var tt = { aa; }
77
~~
8-
!!! error TS2304: Cannot find name 'aa'.
8+
!!! error TS18004: No value exists in scope for the shorthand property 'aa'. Either declare one or provide an initializer.
99
~
1010
!!! error TS1005: ',' expected.
1111
var x = tt;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts(3,5): error TS2304: Cannot find name 'undefinedVariable'.
1+
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts(3,5): error TS18004: No value exists in scope for the shorthand property 'undefinedVariable'. Either declare one or provide an initializer.
22

33

44
==== tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts (1 errors) ====
55
var x = {
66
x, // OK
77
undefinedVariable // Error
88
~~~~~~~~~~~~~~~~~
9-
!!! error TS2304: Cannot find name 'undefinedVariable'.
9+
!!! error TS18004: No value exists in scope for the shorthand property 'undefinedVariable'. Either declare one or provide an initializer.
1010
}
1111

tests/baselines/reference/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.errors.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPr
77
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(9,8): error TS1005: ':' expected.
88
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(10,10): error TS1005: ':' expected.
99
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(12,1): error TS1005: ':' expected.
10-
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(15,5): error TS2304: Cannot find name 'a'.
10+
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(15,5): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1111
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(15,6): error TS1005: ',' expected.
12-
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(16,5): error TS2304: Cannot find name 'a'.
12+
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(16,5): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1313
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(16,6): error TS1005: ',' expected.
1414
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(16,12): error TS1005: ':' expected.
15-
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(17,5): error TS2304: Cannot find name 'a'.
15+
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(17,5): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1616
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(17,6): error TS1005: ',' expected.
1717
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(17,9): error TS1005: ':' expected.
1818
tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts(20,17): error TS1005: ':' expected.
@@ -53,19 +53,19 @@ tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPr
5353
var x = {
5454
a.b,
5555
~
56-
!!! error TS2304: Cannot find name 'a'.
56+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
5757
~
5858
!!! error TS1005: ',' expected.
5959
a["ss"],
6060
~
61-
!!! error TS2304: Cannot find name 'a'.
61+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
6262
~
6363
!!! error TS1005: ',' expected.
6464
~
6565
!!! error TS1005: ':' expected.
6666
a[1],
6767
~
68-
!!! error TS2304: Cannot find name 'a'.
68+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
6969
~
7070
!!! error TS1005: ',' expected.
7171
~
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,11): error TS2304: Cannot find name 'a'.
1+
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,11): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
22
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,12): error TS1005: ',' expected.
3-
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,14): error TS2304: Cannot find name 'b'.
3+
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,14): error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
44
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,15): error TS1005: ',' expected.
5-
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,17): error TS2304: Cannot find name 'c'.
5+
tests/cases/compiler/objectLiteralWithSemicolons1.ts(1,17): error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or provide an initializer.
66

77

88
==== tests/cases/compiler/objectLiteralWithSemicolons1.ts (5 errors) ====
99
var v = { a; b; c }
1010
~
11-
!!! error TS2304: Cannot find name 'a'.
11+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1212
~
1313
!!! error TS1005: ',' expected.
1414
~
15-
!!! error TS2304: Cannot find name 'b'.
15+
!!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
1616
~
1717
!!! error TS1005: ',' expected.
1818
~
19-
!!! error TS2304: Cannot find name 'c'.
19+
!!! error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or provide an initializer.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
tests/cases/compiler/objectLiteralWithSemicolons2.ts(2,3): error TS2304: Cannot find name 'a'.
1+
tests/cases/compiler/objectLiteralWithSemicolons2.ts(2,3): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
22
tests/cases/compiler/objectLiteralWithSemicolons2.ts(2,4): error TS1005: ',' expected.
3-
tests/cases/compiler/objectLiteralWithSemicolons2.ts(3,3): error TS2304: Cannot find name 'b'.
3+
tests/cases/compiler/objectLiteralWithSemicolons2.ts(3,3): error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
44
tests/cases/compiler/objectLiteralWithSemicolons2.ts(3,4): error TS1005: ',' expected.
5-
tests/cases/compiler/objectLiteralWithSemicolons2.ts(4,3): error TS2304: Cannot find name 'c'.
5+
tests/cases/compiler/objectLiteralWithSemicolons2.ts(4,3): error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or provide an initializer.
66

77

88
==== tests/cases/compiler/objectLiteralWithSemicolons2.ts (5 errors) ====
99
var v = {
1010
a;
1111
~
12-
!!! error TS2304: Cannot find name 'a'.
12+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1313
~
1414
!!! error TS1005: ',' expected.
1515
b;
1616
~
17-
!!! error TS2304: Cannot find name 'b'.
17+
!!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
1818
~
1919
!!! error TS1005: ',' expected.
2020
c
2121
~
22-
!!! error TS2304: Cannot find name 'c'.
22+
!!! error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or provide an initializer.
2323
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
tests/cases/compiler/objectLiteralWithSemicolons3.ts(2,3): error TS2304: Cannot find name 'a'.
1+
tests/cases/compiler/objectLiteralWithSemicolons3.ts(2,3): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
22
tests/cases/compiler/objectLiteralWithSemicolons3.ts(2,4): error TS1005: ',' expected.
3-
tests/cases/compiler/objectLiteralWithSemicolons3.ts(3,3): error TS2304: Cannot find name 'b'.
3+
tests/cases/compiler/objectLiteralWithSemicolons3.ts(3,3): error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
44
tests/cases/compiler/objectLiteralWithSemicolons3.ts(3,4): error TS1005: ',' expected.
5-
tests/cases/compiler/objectLiteralWithSemicolons3.ts(4,3): error TS2304: Cannot find name 'c'.
5+
tests/cases/compiler/objectLiteralWithSemicolons3.ts(4,3): error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or provide an initializer.
66
tests/cases/compiler/objectLiteralWithSemicolons3.ts(4,4): error TS1005: ',' expected.
77

88

99
==== tests/cases/compiler/objectLiteralWithSemicolons3.ts (6 errors) ====
1010
var v = {
1111
a;
1212
~
13-
!!! error TS2304: Cannot find name 'a'.
13+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1414
~
1515
!!! error TS1005: ',' expected.
1616
b;
1717
~
18-
!!! error TS2304: Cannot find name 'b'.
18+
!!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or provide an initializer.
1919
~
2020
!!! error TS1005: ',' expected.
2121
c;
2222
~
23-
!!! error TS2304: Cannot find name 'c'.
23+
!!! error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or provide an initializer.
2424
~
2525
!!! error TS1005: ',' expected.
2626
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
tests/cases/compiler/objectLiteralWithSemicolons4.ts(2,3): error TS2304: Cannot find name 'a'.
1+
tests/cases/compiler/objectLiteralWithSemicolons4.ts(2,3): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
22
tests/cases/compiler/objectLiteralWithSemicolons4.ts(3,1): error TS1005: ',' expected.
33

44

55
==== tests/cases/compiler/objectLiteralWithSemicolons4.ts (2 errors) ====
66
var v = {
77
a
88
~
9-
!!! error TS2304: Cannot find name 'a'.
9+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1010
;
1111
~
1212
!!! error TS1005: ',' expected.

tests/baselines/reference/parser512097.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
tests/cases/conformance/parser/ecmascript5/RegressionTests/parser512097.ts(1,12): error TS2304: Cannot find name 'aa'.
1+
tests/cases/conformance/parser/ecmascript5/RegressionTests/parser512097.ts(1,12): error TS18004: No value exists in scope for the shorthand property 'aa'. Either declare one or provide an initializer.
22
tests/cases/conformance/parser/ecmascript5/RegressionTests/parser512097.ts(1,14): error TS1005: ',' expected.
33

44

55
==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser512097.ts (2 errors) ====
66
var tt = { aa; }
77
~~
8-
!!! error TS2304: Cannot find name 'aa'.
8+
!!! error TS18004: No value exists in scope for the shorthand property 'aa'. Either declare one or provide an initializer.
99
~
1010
!!! error TS1005: ',' expected.
1111

tests/baselines/reference/parserErrorRecovery_ObjectLiteral2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts(1,11): error TS2304: Cannot find name 'a'.
1+
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts(1,11): error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
22
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts(2,1): error TS1005: ',' expected.
33
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts(2,7): error TS1005: ':' expected.
44
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts(2,8): error TS1005: '}' expected.
@@ -7,7 +7,7 @@ tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserEr
77
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts (4 errors) ====
88
var v = { a
99
~
10-
!!! error TS2304: Cannot find name 'a'.
10+
!!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or provide an initializer.
1111
return;
1212
~~~~~~
1313
!!! error TS1005: ',' expected.

0 commit comments

Comments
 (0)