Closed
Description
Repost of microsoft/TypeScript#4419
Seems like this problem is related to v8. Following code (using iojs@3.1)
var prop = 'age'
var val = 42
console.log([{ name: "ivan", [prop]: val }])
console.log({ name: "ivan", [prop]: val })
produces output
[ { name: 'ivan' } ]
{ name: 'ivan', age: 42 }
Activity