Skip to content

Commit 787c323

Browse files
committed
Accept new baselines
1 parent dbeb682 commit 787c323

File tree

4 files changed

+21
-55
lines changed

4 files changed

+21
-55
lines changed

tests/baselines/reference/parserArrowFunctionExpression6.errors.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.

tests/baselines/reference/parserArrowFunctionExpression6.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ function foo(q: string, b: number) {
66

77
//// [parserArrowFunctionExpression6.js]
88
function foo(q, b) {
9-
return true ? function (q, , ) { } : ;
10-
;
9+
return true ? (q ? true : false) : (b = q.length, function () { });
1110
}
1211
;

tests/baselines/reference/parserArrowFunctionExpression6.symbols

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ function foo(q: string, b: number) {
55
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 0, 23))
66

77
return true ? (q ? true : false) : (b = q.length, function() { });
8-
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 1, 19))
9-
> : Symbol((Missing), Decl(parserArrowFunctionExpression6.ts, 1, 22))
10-
> : Symbol((Missing), Decl(parserArrowFunctionExpression6.ts, 1, 29))
11-
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 1, 40))
12-
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 1, 19))
8+
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
9+
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 0, 23))
10+
>q.length : Symbol(String.length, Decl(lib.d.ts, --, --))
11+
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
12+
>length : Symbol(String.length, Decl(lib.d.ts, --, --))
1313

1414
};
1515

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts ===
22
function foo(q: string, b: number) {
3-
>foo : (q: string, b: number) => any
3+
>foo : (q: string, b: number) => boolean | (() => void)
44
>q : string
55
>b : number
66

77
return true ? (q ? true : false) : (b = q.length, function() { });
8-
>true ? (q ? true : false) : (b = q.length, function() { } : any
8+
>true ? (q ? true : false) : (b = q.length, function() { }) : boolean | (() => void)
99
>true : true
10-
>(q ? true : false) : (b = q.length, function() { } : (q?: any, : any, : any) => (b?: any) => () => any
11-
>q : any
12-
> : any
13-
> : any
14-
>b : any
15-
>q.length : any
16-
>q : any
17-
>length : any
18-
> : any
10+
>(q ? true : false) : boolean
11+
>q ? true : false : boolean
12+
>q : string
13+
>true : true
14+
>false : false
15+
>(b = q.length, function() { }) : () => void
16+
>b = q.length, function() { } : () => void
17+
>b = q.length : number
18+
>b : number
19+
>q.length : number
20+
>q : string
21+
>length : number
22+
>function() { } : () => void
1923

2024
};
2125

0 commit comments

Comments
 (0)