Skip to content

Commit 1cffd5f

Browse files
committed
Add missed baselines
1 parent 86d5311 commit 1cffd5f

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//// [parserArrowFunctionExpression6.ts]
2+
function foo(q: string, b: number) {
3+
return true ? (q ? true : false) : (b = q.length, function() { });
4+
};
5+
6+
7+
//// [parserArrowFunctionExpression6.js]
8+
function foo(q, b) {
9+
return true ? (q ? true : false) : (b = q.length, function () { });
10+
}
11+
;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts ===
2+
function foo(q: string, b: number) {
3+
>foo : Symbol(foo, Decl(parserArrowFunctionExpression6.ts, 0, 0))
4+
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
5+
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 0, 23))
6+
7+
return true ? (q ? true : false) : (b = q.length, function() { });
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, --, --))
13+
14+
};
15+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts ===
2+
function foo(q: string, b: number) {
3+
>foo : (q: string, b: number) => boolean | (() => void)
4+
>q : string
5+
>b : number
6+
7+
return true ? (q ? true : false) : (b = q.length, function() { });
8+
>true ? (q ? true : false) : (b = q.length, function() { }) : boolean | (() => void)
9+
>true : true
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
23+
24+
};
25+

0 commit comments

Comments
 (0)