{"action":"opened","issue":{"url":"https://api.github.com/repos/jquery/esprima/issues/1105","labels_url":"https://api.github.com/repos/jquery/esprima/issues/1105/labels{/name}","comments_url":"https://api.github.com/repos/jquery/esprima/issues/1105/comments","events_url":"https://api.github.com/repos/jquery/esprima/issues/1105/events","html_url":"https://github.com/jquery/esprima/issues/1105","id":60438898,"number":1105,"title":"Tolerate `return` outside of function context in tolerant mode","user":{"login":"mikesherov","id":364532,"avatar_url":"https://avatars.githubusercontent.com/u/364532?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesherov","html_url":"https://github.com/mikesherov","followers_url":"https://api.github.com/users/mikesherov/followers","following_url":"https://api.github.com/users/mikesherov/following{/other_user}","gists_url":"https://api.github.com/users/mikesherov/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesherov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesherov/subscriptions","organizations_url":"https://api.github.com/users/mikesherov/orgs","repos_url":"https://api.github.com/users/mikesherov/repos","events_url":"https://api.github.com/users/mikesherov/events{/privacy}","received_events_url":"https://api.github.com/users/mikesherov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jquery/esprima/labels/easy","name":"easy","color":"009800"},{"url":"https://api.github.com/repos/jquery/esprima/labels/enhancement","name":"enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T01:48:29Z","updated_at":"2015-03-10T01:48:29Z","closed_at":null,"body":"See the `globalReturn` flag in espree. This is commonly needed as in Node JS, all modules are effectively wrapped by IIFE, and so `return` in the global context is an easy way to exit early out of a module.\r\n\r\nWould be fairly trivial to turn this into a tolerated error so that consumers like ESLint and JSCS can decide if they want to report the error or not."}}