{"action":"closed","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2120","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2120/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2120/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2120/events","html_url":"https://github.com/eslint/eslint/issues/2120","id":63342876,"number":2120,"title":"Computed properties failing","user":{"login":"sscotth","id":1010488,"avatar_url":"https://avatars.githubusercontent.com/u/1010488?v=3","gravatar_id":"","url":"https://api.github.com/users/sscotth","html_url":"https://github.com/sscotth","followers_url":"https://api.github.com/users/sscotth/followers","following_url":"https://api.github.com/users/sscotth/following{/other_user}","gists_url":"https://api.github.com/users/sscotth/gists{/gist_id}","starred_url":"https://api.github.com/users/sscotth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscotth/subscriptions","organizations_url":"https://api.github.com/users/sscotth/orgs","repos_url":"https://api.github.com/users/sscotth/repos","events_url":"https://api.github.com/users/sscotth/events{/privacy}","received_events_url":"https://api.github.com/users/sscotth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-21T01:31:58Z","updated_at":"2015-03-27T00:36:09Z","closed_at":"2015-03-27T00:36:09Z","body":"```js\r\n// ecmaFeatures:\r\n//   objectLiteralComputedProperties:  true  # enable computed object literal property names\r\nvar suffix = \" name\";\r\n\r\nvar person = {\r\n    [\"first\" + suffix]: \"Nicholas\",\r\n    [\"last\" + suffix]: \"Zakas\"\r\n};\r\n\r\nconsole.log(person[\"first name\"]);      // \"Nicholas\"\r\nconsole.log(person[\"last name\"]);       // \"Zakas\"\r\n```\r\n\r\n```\r\n/Users/scott/.nvm/versions/io.js/v1.6.1/lib/node_modules/eslint/lib/rules/key-spacing.js:38\r\n    return (key.type === \"Identifier\" ? key.name : key.raw).length;\r\n                                                           ^\r\nTypeError: Cannot read property 'length' of undefined\r\n    at getKeyWidth (/Users/scott/.nvm/versions/io.js/v1.6.1/lib/node_modules/eslint/lib/rules/key-spacing.js:38:60)\r\n    at Array.map (native)\r\n    at verifyAlignment (/Users/scott/.nvm/versions/io.js/v1.6.1/lib/node_modules/eslint/lib/rules/key-spacing.js:158:33)\r\n    at /Users/scott/.nvm/versions/io.js/v1.6.1/lib/node_modules/eslint/lib/rules/key-spacing.js:201:21\r\n    at Array.forEach (native)\r\n    at EventEmitter.ObjectExpression (/Users/scott/.nvm/versions/io.js/v1.6.1/lib/node_modules/eslint/lib/rules/key-spacing.js:200:26)\r\n    at emitOne (events.js:82:20)\r\n    at EventEmitter.emit (events.js:166:7)\r\n    at Controller.controller.traverse.enter (/Users/scott/.nvm/versions/io.js/v1.6.1/lib/node_modules/eslint/lib/eslint.js:735:25)\r\n    at Controller.__execute (/Users/scott/.nvm/versions/io.js/v1.6.1/lib/node_modules/eslint/node_modules/estraverse/estraverse.js:393:31)\r\n```"}}