{"action":"created","issue":{"url":"https://api.github.com/repos/power-assert-js/espower/issues/23","labels_url":"https://api.github.com/repos/power-assert-js/espower/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/power-assert-js/espower/issues/23/comments","events_url":"https://api.github.com/repos/power-assert-js/espower/issues/23/events","html_url":"https://github.com/power-assert-js/espower/pull/23","id":115429508,"number":23,"title":"feat(espower): disambiguate between function calls and async/yield expressions","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-06T03:57:18Z","updated_at":"2015-11-06T09:01:55Z","closed_at":"2015-11-06T08:52:02Z","pull_request":{"url":"https://api.github.com/repos/power-assert-js/espower/pulls/23","html_url":"https://github.com/power-assert-js/espower/pull/23","diff_url":"https://github.com/power-assert-js/espower/pull/23.diff","patch_url":"https://github.com/power-assert-js/espower/pull/23.patch"},"body":"In order to fully disambiguate the contextual keywords `async`\r\nand `yield`, we need to pass along some additional context to\r\npower-assert-formatter. Specifically whether the enclosing function\r\nis async or a generator.\r\n\r\nThis adds two new properties to the context passed to `assert._expr()`\r\n\r\n - `async: true` if the function enclosing the assertion is an async function\r\n - `generator: true` if the function enclosing the assertion is a generator\r\n\r\nIn both cases, we do not set a property if the enclosing function is not\r\na generator/async (i.e. we never pass `async:false`). This is primarily\r\nto avoid having to rewrite a bunch of existing unit tests."},"comment":{"url":"https://api.github.com/repos/power-assert-js/espower/issues/comments/154349305","html_url":"https://github.com/power-assert-js/espower/pull/23#issuecomment-154349305","issue_url":"https://api.github.com/repos/power-assert-js/espower/issues/23","id":154349305,"user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T09:01:55Z","updated_at":"2015-11-06T09:01:55Z","body":"1.2.1 is fine.\r\n"}}