Add new baselines

This commit is contained in:
Andrew Branch
2019-04-01 14:13:09 -07:00
parent d198c5906f
commit 96990800e3
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
//// [parserParenthesizedVariableAndFunctionInTernary.ts]
let a: any;
const c = true ? (a) : function() {};
//// [parserParenthesizedVariableAndFunctionInTernary.js]
var a;
var c = true ? (a) : function () { };

View File

@@ -0,0 +1,8 @@
=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts ===
let a: any;
>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3))
const c = true ? (a) : function() {};
>c : Symbol(c, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 1, 5))
>a : Symbol(a, Decl(parserParenthesizedVariableAndFunctionInTernary.ts, 0, 3))

View File

@@ -0,0 +1,12 @@
=== tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts ===
let a: any;
>a : any
const c = true ? (a) : function() {};
>c : any
>true ? (a) : function() {} : any
>true : true
>(a) : any
>a : any
>function() {} : () => void