Add missed baselines
This commit is contained in:
parent
d8ace9ddfb
commit
74ecef418d
11
tests/baselines/reference/parserArrowFunctionExpression6.js
Normal file
11
tests/baselines/reference/parserArrowFunctionExpression6.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
//// [parserArrowFunctionExpression6.ts]
|
||||||
|
function foo(q: string, b: number) {
|
||||||
|
return true ? (q ? true : false) : (b = q.length, function() { });
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
//// [parserArrowFunctionExpression6.js]
|
||||||
|
function foo(q, b) {
|
||||||
|
return true ? (q ? true : false) : (b = q.length, function () { });
|
||||||
|
}
|
||||||
|
;
|
|
@ -0,0 +1,15 @@
|
||||||
|
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts ===
|
||||||
|
function foo(q: string, b: number) {
|
||||||
|
>foo : Symbol(foo, Decl(parserArrowFunctionExpression6.ts, 0, 0))
|
||||||
|
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
|
||||||
|
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 0, 23))
|
||||||
|
|
||||||
|
return true ? (q ? true : false) : (b = q.length, function() { });
|
||||||
|
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
|
||||||
|
>b : Symbol(b, Decl(parserArrowFunctionExpression6.ts, 0, 23))
|
||||||
|
>q.length : Symbol(String.length, Decl(lib.d.ts, --, --))
|
||||||
|
>q : Symbol(q, Decl(parserArrowFunctionExpression6.ts, 0, 13))
|
||||||
|
>length : Symbol(String.length, Decl(lib.d.ts, --, --))
|
||||||
|
|
||||||
|
};
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
=== tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression6.ts ===
|
||||||
|
function foo(q: string, b: number) {
|
||||||
|
>foo : (q: string, b: number) => boolean | (() => void)
|
||||||
|
>q : string
|
||||||
|
>b : number
|
||||||
|
|
||||||
|
return true ? (q ? true : false) : (b = q.length, function() { });
|
||||||
|
>true ? (q ? true : false) : (b = q.length, function() { }) : boolean | (() => void)
|
||||||
|
>true : true
|
||||||
|
>(q ? true : false) : boolean
|
||||||
|
>q ? true : false : boolean
|
||||||
|
>q : string
|
||||||
|
>true : true
|
||||||
|
>false : false
|
||||||
|
>(b = q.length, function() { }) : () => void
|
||||||
|
>b = q.length, function() { } : () => void
|
||||||
|
>b = q.length : number
|
||||||
|
>b : number
|
||||||
|
>q.length : number
|
||||||
|
>q : string
|
||||||
|
>length : number
|
||||||
|
>function() { } : () => void
|
||||||
|
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue