{"action":"created","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/1445","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/1445/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/1445/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/1445/events","html_url":"https://github.com/sveltejs/svelte/issues/1445","id":322104644,"number":1445,"title":"Reserved keywords cause error when used in an expression with spaces around the keyword","user":{"login":"taylorzane","id":5092987,"avatar_url":"https://avatars1.githubusercontent.com/u/5092987?v=4","gravatar_id":"","url":"https://api.github.com/users/taylorzane","html_url":"https://github.com/taylorzane","followers_url":"https://api.github.com/users/taylorzane/followers","following_url":"https://api.github.com/users/taylorzane/following{/other_user}","gists_url":"https://api.github.com/users/taylorzane/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorzane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorzane/subscriptions","organizations_url":"https://api.github.com/users/taylorzane/orgs","repos_url":"https://api.github.com/users/taylorzane/repos","events_url":"https://api.github.com/users/taylorzane/events{/privacy}","received_events_url":"https://api.github.com/users/taylorzane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-10T22:15:51Z","updated_at":"2018-05-10T23:53:57Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When using reserved JavaScript keywords in an expression, if the expression has spaces in between the curly brackets and the keyword, the parser will throw an error.\r\n\r\nThis throws: `<div class=\"{ class }\"></div>`\r\nBut this does not: `<div class=\"{class}\"></div>`\r\n\r\nThis goes for all JS keywords. I've tested `import`, `export`, and `class` at least.\r\n\r\nREPL with failing test case: https://svelte.technology/repl?version=2.5.0&gist=9d4b8a0c733a48397d8a66feb9881fa5\r\n\r\nREPL with passing test case: https://svelte.technology/repl?version=2.5.0&gist=6149f93a9af8cbc6286a335b8afbfaec"},"comment":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/comments/388219721","html_url":"https://github.com/sveltejs/svelte/issues/1445#issuecomment-388219721","issue_url":"https://api.github.com/repos/sveltejs/svelte/issues/1445","id":388219721,"user":{"login":"Conduitry","id":16696352,"avatar_url":"https://avatars1.githubusercontent.com/u/16696352?v=4","gravatar_id":"","url":"https://api.github.com/users/Conduitry","html_url":"https://github.com/Conduitry","followers_url":"https://api.github.com/users/Conduitry/followers","following_url":"https://api.github.com/users/Conduitry/following{/other_user}","gists_url":"https://api.github.com/users/Conduitry/gists{/gist_id}","starred_url":"https://api.github.com/users/Conduitry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Conduitry/subscriptions","organizations_url":"https://api.github.com/users/Conduitry/orgs","repos_url":"https://api.github.com/users/Conduitry/repos","events_url":"https://api.github.com/users/Conduitry/events{/privacy}","received_events_url":"https://api.github.com/users/Conduitry/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T23:53:57Z","updated_at":"2018-05-10T23:53:57Z","author_association":"MEMBER","body":"Actually, this is currently working with things like `{ export }` appearing in HTML, just not when they're in an attribute value. These both use `readExpression`, so that suggests maybe the `allowWhitespace()` ought to be inserted elsewhere, but I'm not sure where."}}
{"actor":{"display_login":"Conduitry"}}