{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/execjs/issues/65","repository_url":"https://api.github.com/repos/rails/execjs","labels_url":"https://api.github.com/repos/rails/execjs/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/rails/execjs/issues/65/comments","events_url":"https://api.github.com/repos/rails/execjs/issues/65/events","html_url":"https://github.com/rails/execjs/issues/65","id":246303547,"number":65,"title":"ExecJS.eval does not tolerate trailing semicolon","user":{"login":"betelgeuse","id":34627,"avatar_url":"https://avatars0.githubusercontent.com/u/34627?v=4","gravatar_id":"","url":"https://api.github.com/users/betelgeuse","html_url":"https://github.com/betelgeuse","followers_url":"https://api.github.com/users/betelgeuse/followers","following_url":"https://api.github.com/users/betelgeuse/following{/other_user}","gists_url":"https://api.github.com/users/betelgeuse/gists{/gist_id}","starred_url":"https://api.github.com/users/betelgeuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betelgeuse/subscriptions","organizations_url":"https://api.github.com/users/betelgeuse/orgs","repos_url":"https://api.github.com/users/betelgeuse/repos","events_url":"https://api.github.com/users/betelgeuse/events{/privacy}","received_events_url":"https://api.github.com/users/betelgeuse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-28T10:03:53Z","updated_at":"2017-07-28T10:03:53Z","closed_at":null,"body":"```\r\nirb(main):009:0> ExecJS.runtime\r\n=> #<ExecJS::MiniRacerRuntime:0x007feb4abf7178>\r\nirb(main):010:0> ExecJS.eval '1+2'\r\n=> 3\r\nirb(main):011:0>  ExecJS.eval '1+2;'\r\nExecJS::RuntimeError: Uncaught SyntaxError: Unexpected token ; at undefined:1:4\r\n```\r\n\r\nI think ExecJS.eval should tolerate trailing semicolons. I had this happen in a library stack where a library js file ended with a semicolon and the stack was feeding it to eval."}}
{"actor":{"display_login":"betelgeuse"}}