{"action":"created","issue":{"url":"https://api.github.com/repos/marijnh/acorn/issues/189","labels_url":"https://api.github.com/repos/marijnh/acorn/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/marijnh/acorn/issues/189/comments","events_url":"https://api.github.com/repos/marijnh/acorn/issues/189/events","html_url":"https://github.com/marijnh/acorn/issues/189","id":53287743,"number":189,"title":"Acorn fails to tokenize valid JS source","user":{"login":"fitzgen","id":74571,"avatar_url":"https://avatars.githubusercontent.com/u/74571?v=3","gravatar_id":"","url":"https://api.github.com/users/fitzgen","html_url":"https://github.com/fitzgen","followers_url":"https://api.github.com/users/fitzgen/followers","following_url":"https://api.github.com/users/fitzgen/following{/other_user}","gists_url":"https://api.github.com/users/fitzgen/gists{/gist_id}","starred_url":"https://api.github.com/users/fitzgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitzgen/subscriptions","organizations_url":"https://api.github.com/users/fitzgen/orgs","repos_url":"https://api.github.com/users/fitzgen/repos","events_url":"https://api.github.com/users/fitzgen/events{/privacy}","received_events_url":"https://api.github.com/users/fitzgen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-03T00:19:49Z","updated_at":"2015-01-06T17:02:59Z","closed_at":null,"body":"Tokenizing the following valid JS source fails with `Expecting Unicode escape sequence \\uXXXX (1:68)`:\r\n\r\n    {var o=f[h];g[c]=o.slice&&\"%\"==o.slice(-1)?parseFloat(o)/100*m:o}/^\\d+$/.test(g[c])\r\n\r\n## Steps to reproduce:\r\n\r\n* Save the above test case as `test-case.js`.\r\n\r\n* Checkout https://github.com/marijnh/acorn/pull/188 to access the tokenizer from the `bin/acorn` script.\r\n\r\n* Run `acorn --tokenize test-case.js`\r\n\r\n## Expected results:\r\n\r\nThe tokens are printed to stdout.\r\n\r\n## Actual results:\r\n\r\nThe error message \"`Expecting Unicode escape sequence \\uXXXX (1:68)`\" is displayed."},"comment":{"url":"https://api.github.com/repos/marijnh/acorn/issues/comments/68894595","html_url":"https://github.com/marijnh/acorn/issues/189#issuecomment-68894595","issue_url":"https://api.github.com/repos/marijnh/acorn/issues/189","id":68894595,"user":{"login":"fitzgen","id":74571,"avatar_url":"https://avatars.githubusercontent.com/u/74571?v=3","gravatar_id":"","url":"https://api.github.com/users/fitzgen","html_url":"https://github.com/fitzgen","followers_url":"https://api.github.com/users/fitzgen/followers","following_url":"https://api.github.com/users/fitzgen/following{/other_user}","gists_url":"https://api.github.com/users/fitzgen/gists{/gist_id}","starred_url":"https://api.github.com/users/fitzgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitzgen/subscriptions","organizations_url":"https://api.github.com/users/fitzgen/orgs","repos_url":"https://api.github.com/users/fitzgen/repos","events_url":"https://api.github.com/users/fitzgen/events{/privacy}","received_events_url":"https://api.github.com/users/fitzgen/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T17:02:59Z","updated_at":"2015-01-06T17:02:59Z","body":"@marijnh thanks! I've verified that the scripts we've been having trouble with previously are now successfully tokenized.\r\n\r\nBuilding firefox to test with the devtools now..."}}