{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/espree/issues/141","labels_url":"https://api.github.com/repos/eslint/espree/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/eslint/espree/issues/141/comments","events_url":"https://api.github.com/repos/eslint/espree/issues/141/events","html_url":"https://github.com/eslint/espree/pull/141","id":76172608,"number":141,"title":"Fix: Override ecmaFeatures with options, don't replace them","user":{"login":"Skalman","id":138395,"avatar_url":"https://avatars.githubusercontent.com/u/138395?v=3","gravatar_id":"","url":"https://api.github.com/users/Skalman","html_url":"https://github.com/Skalman","followers_url":"https://api.github.com/users/Skalman/followers","following_url":"https://api.github.com/users/Skalman/following{/other_user}","gists_url":"https://api.github.com/users/Skalman/gists{/gist_id}","starred_url":"https://api.github.com/users/Skalman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skalman/subscriptions","organizations_url":"https://api.github.com/users/Skalman/orgs","repos_url":"https://api.github.com/users/Skalman/repos","events_url":"https://api.github.com/users/Skalman/events{/privacy}","received_events_url":"https://api.github.com/users/Skalman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-14T00:17:11Z","updated_at":"2015-05-15T15:46:48Z","closed_at":"2015-05-14T02:43:29Z","pull_request":{"url":"https://api.github.com/repos/eslint/espree/pulls/141","html_url":"https://github.com/eslint/espree/pull/141","diff_url":"https://github.com/eslint/espree/pull/141.diff","patch_url":"https://github.com/eslint/espree/pull/141.patch"},"body":"**Problem before this fix:**\r\nE.g. `ecmaFeatures.blockBindings` is `true` by default, but using options `{ecmaFeatures:{}}` would cause all features to be `undefined`, causing the example below to throw an error:\r\n\r\n```js\r\nvar espree = require('espree');\r\nespree.parse('let a = 1', {ecmaFeatures: {}}); // Throws 'Unexpected token let'\r\n```\r\n\r\n----\r\n\r\nI didn't see how this affects `espree.tokenize()`, but I figured I might as well provide the fix there too.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/espree/issues/comments/102442083","html_url":"https://github.com/eslint/espree/pull/141#issuecomment-102442083","issue_url":"https://api.github.com/repos/eslint/espree/issues/141","id":102442083,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T15:46:48Z","updated_at":"2015-05-15T15:46:48Z","body":"Lgtm"}}