- Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
function(m: string){[1,2,3].map(i=>{returntrue? {[m]: i} : false})}produces:
function(m){[1,2,3].map(function(i){returntrue ? _a={},_a[m]=i,_a : false;// <-- unexpected token ,var_a;});}instead of:
function(m){[1,2,3].map(function(i){returntrue ? (_a={},_a[m]=i,_a) : false;var_a;});}Tested 2.0.10 is working correctly.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue