{"action":"opened","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/761","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/761/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/761/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/761/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/761","id":98937532,"number":761,"title":"Constant caching","user":{"login":"fabiosantoscode","id":1611595,"avatar_url":"https://avatars.githubusercontent.com/u/1611595?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosantoscode","html_url":"https://github.com/fabiosantoscode","followers_url":"https://api.github.com/users/fabiosantoscode/followers","following_url":"https://api.github.com/users/fabiosantoscode/following{/other_user}","gists_url":"https://api.github.com/users/fabiosantoscode/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosantoscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosantoscode/subscriptions","organizations_url":"https://api.github.com/users/fabiosantoscode/orgs","repos_url":"https://api.github.com/users/fabiosantoscode/repos","events_url":"https://api.github.com/users/fabiosantoscode/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosantoscode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T10:24:00Z","updated_at":"2015-08-04T10:24:00Z","closed_at":null,"body":"Could we cache constants? Some strings (such as 'undefined', 'function', etc.), undefined, null, true, false, are used a lot! In unsafe mode, we could even cache Array.prototype, Object.prototype, [].slice (as in [].slice.call(arguments)). Large numbers may also be worth it to cache.\r\n\r\nDeclaring more safely cacheable things (such as window, document, document.documentElement, console, navigator) through an option could help us cache a ton of things."}}