{"action":"created","issue":{"url":"https://api.github.com/repos/gotwarlost/istanbul/issues/507","labels_url":"https://api.github.com/repos/gotwarlost/istanbul/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/gotwarlost/istanbul/issues/507/comments","events_url":"https://api.github.com/repos/gotwarlost/istanbul/issues/507/events","html_url":"https://github.com/gotwarlost/istanbul/pull/507","id":122298835,"number":507,"title":"Handle ExportNamedDeclarations","user":{"login":"Victorystick","id":703602,"avatar_url":"https://avatars.githubusercontent.com/u/703602?v=3","gravatar_id":"","url":"https://api.github.com/users/Victorystick","html_url":"https://github.com/Victorystick","followers_url":"https://api.github.com/users/Victorystick/followers","following_url":"https://api.github.com/users/Victorystick/following{/other_user}","gists_url":"https://api.github.com/users/Victorystick/gists{/gist_id}","starred_url":"https://api.github.com/users/Victorystick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victorystick/subscriptions","organizations_url":"https://api.github.com/users/Victorystick/orgs","repos_url":"https://api.github.com/users/Victorystick/repos","events_url":"https://api.github.com/users/Victorystick/events{/privacy}","received_events_url":"https://api.github.com/users/Victorystick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-15T15:37:20Z","updated_at":"2016-01-20T14:01:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gotwarlost/istanbul/pulls/507","html_url":"https://github.com/gotwarlost/istanbul/pull/507","diff_url":"https://github.com/gotwarlost/istanbul/pull/507.diff","patch_url":"https://github.com/gotwarlost/istanbul/pull/507.patch"},"body":"Istanbul currently doesn't handle `export var ...`, and throws:\r\n```\r\n/Users/oskar/github/istanbul/lib/instrumenter.js:252\r\n                        throw new Error('Internal error: attempt to prepend statements in disallowed (non-array) context');\r\n                        ^\r\n\r\nError: Internal error: attempt to prepend statements in disallowed (non-array) context\r\n    at Object.defaultWalker (/Users/oskar/github/istanbul/lib/instrumenter.js:252:31)\r\n    at Object.Walker.apply (/Users/oskar/github/istanbul/lib/instrumenter.js:297:26)\r\n    at Object.defaultWalker (/Users/oskar/github/istanbul/lib/instrumenter.js:237:47)\r\n    at Object.Walker.apply (/Users/oskar/github/istanbul/lib/instrumenter.js:297:26)\r\n    at Object.Walker.startWalk (/Users/oskar/github/istanbul/lib/instrumenter.js:281:18)\r\n    at Object.Instrumenter.instrumentASTSync (/Users/oskar/github/istanbul/lib/instrumenter.js:554:25)\r\n    at Object.Instrumenter.instrumentSync (/Users/oskar/github/istanbul/lib/instrumenter.js:468:25)\r\n    at Object.<anonymous> (/Users/oskar/github/istanbul/exec.js:7:27)\r\n    at Module._compile (module.js:425:26)\r\n    at Object.Module._extensions..js (module.js:432:10)\r\n```\r\n\r\nThis PR attempts to rectify this."},"comment":{"url":"https://api.github.com/repos/gotwarlost/istanbul/issues/comments/173212516","html_url":"https://github.com/gotwarlost/istanbul/pull/507#issuecomment-173212516","issue_url":"https://api.github.com/repos/gotwarlost/istanbul/issues/507","id":173212516,"user":{"login":"Victorystick","id":703602,"avatar_url":"https://avatars.githubusercontent.com/u/703602?v=3","gravatar_id":"","url":"https://api.github.com/users/Victorystick","html_url":"https://github.com/Victorystick","followers_url":"https://api.github.com/users/Victorystick/followers","following_url":"https://api.github.com/users/Victorystick/following{/other_user}","gists_url":"https://api.github.com/users/Victorystick/gists{/gist_id}","starred_url":"https://api.github.com/users/Victorystick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victorystick/subscriptions","organizations_url":"https://api.github.com/users/Victorystick/orgs","repos_url":"https://api.github.com/users/Victorystick/repos","events_url":"https://api.github.com/users/Victorystick/events{/privacy}","received_events_url":"https://api.github.com/users/Victorystick/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T14:01:44Z","updated_at":"2016-01-20T14:01:44Z","body":"No worries. I'll get out of your hair. :wink: "}}