Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computed pops are not properly handled #4419

Closed
lazdmx opened this issue Aug 23, 2015 · 2 comments
Closed

Computed pops are not properly handled #4419

lazdmx opened this issue Aug 23, 2015 · 2 comments

Comments

@lazdmx
Copy link

lazdmx commented Aug 23, 2015

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 }
@lbguilherme
Copy link

This seems to be a bug on v8 and not related in any way with Typescript.

console.log({["age"]: 42})   // {age: 42}
console.log([{["age"]: 42}]) // [{}]

@lazdmx
Copy link
Author

lazdmx commented Aug 23, 2015

Ough!)) I've mixed up issue trackers)). Sorry

@lazdmx lazdmx closed this as completed Aug 23, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants