{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/esprima/issues/1284","labels_url":"https://api.github.com/repos/jquery/esprima/issues/1284/labels{/name}","comments_url":"https://api.github.com/repos/jquery/esprima/issues/1284/comments","events_url":"https://api.github.com/repos/jquery/esprima/issues/1284/events","html_url":"https://github.com/jquery/esprima/issues/1284","id":101123977,"number":1284,"title":"Creating errors breaks in Safari (strict mode)","user":{"login":"mgh","id":143985,"avatar_url":"https://avatars.githubusercontent.com/u/143985?v=3","gravatar_id":"","url":"https://api.github.com/users/mgh","html_url":"https://github.com/mgh","followers_url":"https://api.github.com/users/mgh/followers","following_url":"https://api.github.com/users/mgh/following{/other_user}","gists_url":"https://api.github.com/users/mgh/gists{/gist_id}","starred_url":"https://api.github.com/users/mgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgh/subscriptions","organizations_url":"https://api.github.com/users/mgh/orgs","repos_url":"https://api.github.com/users/mgh/repos","events_url":"https://api.github.com/users/mgh/events{/privacy}","received_events_url":"https://api.github.com/users/mgh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jquery/esprima/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-14T23:57:41Z","updated_at":"2015-08-19T15:07:04Z","closed_at":null,"body":"Creating an `Error` and assigning to the `column` property breaks on the latest mobile and desktop Safari.  Removing `\"use strict\"` in esprima is a workaround, but seems like not the ideal solution.\r\n\r\nRelevant line:\r\nhttps://github.com/jquery/esprima/blob/master/esprima.js#L2395\r\n\r\nTest case:\r\n```\r\n(function () { \"use strict\"; var e = new Error(); e.column = 1; })();\r\n\r\n--> TypeError: Attempted to assign to readonly property.\r\n```\r\n\r\nThe effect is that `esprima.parse` on invalid code throws the above `TypeError` rather than the expected `SyntaxError` in Safari."},"comment":{"url":"https://api.github.com/repos/jquery/esprima/issues/comments/132632974","html_url":"https://github.com/jquery/esprima/issues/1284#issuecomment-132632974","issue_url":"https://api.github.com/repos/jquery/esprima/issues/1284","id":132632974,"user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T15:07:04Z","updated_at":"2015-08-19T15:07:04Z","body":"@ariya Why do we have two issues open for this problem?"}}