You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with it is that it's not a valid JS syntactically. Here's the output from node 5.9.0 from attempt at running it:
[stdin]:1
var x = true ? _a = {}, _a['test'] = 5, _a : {};
^
SyntaxError: Unexpected token ,
at Object.exports.runInThisContext (vm.js:53:16)
at Object.<anonymous> ([stdin]-wrapper:6:22)
at Module._compile (module.js:413:34)
at node.js:550:27
at _combinedTickCallback (node.js:376:9)
at process._tickCallback (node.js:407:11)
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1.1
Code
Expected behavior:
TS 2.0.6 emits this JS:
Actual behavior:
TS 2.1.1 emits this JS:
The problem with it is that it's not a valid JS syntactically. Here's the output from node 5.9.0 from attempt at running it:
The text was updated successfully, but these errors were encountered: