{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/8267","labels_url":"https://api.github.com/repos/atom/atom/issues/8267/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/8267/comments","events_url":"https://api.github.com/repos/atom/atom/issues/8267/events","html_url":"https://github.com/atom/atom/issues/8267","id":99633864,"number":8267,"title":"global.Function cannot be replaced on Atom 1.0.5","user":{"login":"Metric","id":250989,"avatar_url":"https://avatars.githubusercontent.com/u/250989?v=3","gravatar_id":"","url":"https://api.github.com/users/Metric","html_url":"https://github.com/Metric","followers_url":"https://api.github.com/users/Metric/followers","following_url":"https://api.github.com/users/Metric/following{/other_user}","gists_url":"https://api.github.com/users/Metric/gists{/gist_id}","starred_url":"https://api.github.com/users/Metric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metric/subscriptions","organizations_url":"https://api.github.com/users/Metric/orgs","repos_url":"https://api.github.com/users/Metric/repos","events_url":"https://api.github.com/users/Metric/events{/privacy}","received_events_url":"https://api.github.com/users/Metric/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/atom/atom/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-08-07T11:48:41Z","updated_at":"2015-08-07T23:53:44Z","closed_at":null,"body":"Okay, so guys. People have been commenting on less-autocompile about it not being able to compile .less that uses javascript. It seems y'all did something to break the global.Function on 1.0.5. Anything lower than 1.0.5 works just fine.\r\n\r\nIn less-autocompile I use loophole on the global.Function such as:\r\n```\r\nvar oldFunction = global.Function;\r\nglobal.Function = loophole.Function;\r\n.... //do stuff here while replaced\r\nglobal.Function = oldFunction; //restore to default global\r\n```\r\n\r\nHowever, this does not appear to work in Atom 1.0.5. At least, it used to affect the less compiler parse Function, but it doesn't appear to anymore. I have proven that it is indeed 1.0.5 causing this issue again. I was on Atom 1.0.4 and lower for awhile and it still worked. The minute I updated to 1.0.5 it no longer works.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/128863106","html_url":"https://github.com/atom/atom/issues/8267#issuecomment-128863106","issue_url":"https://api.github.com/repos/atom/atom/issues/8267","id":128863106,"user":{"login":"Metric","id":250989,"avatar_url":"https://avatars.githubusercontent.com/u/250989?v=3","gravatar_id":"","url":"https://api.github.com/users/Metric","html_url":"https://github.com/Metric","followers_url":"https://api.github.com/users/Metric/followers","following_url":"https://api.github.com/users/Metric/following{/other_user}","gists_url":"https://api.github.com/users/Metric/gists{/gist_id}","starred_url":"https://api.github.com/users/Metric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metric/subscriptions","organizations_url":"https://api.github.com/users/Metric/orgs","repos_url":"https://api.github.com/users/Metric/repos","events_url":"https://api.github.com/users/Metric/events{/privacy}","received_events_url":"https://api.github.com/users/Metric/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T23:53:44Z","updated_at":"2015-08-07T23:53:44Z","body":"Okay, I finally was able to update my windows version of atom to 1.0.5. And\nI installed my lesscompile package 0.5.0. It seems to work just fine with\nlesshat mixins with JavaScript. Looks like this actually may be a conflict\nwith the users packages they have installed along with lesscompile.\n\nUsers are reporting that lesscompile 0.5.0 is triggering the unsafe eval\nerror and not allowing files to save. However, upon further testing of my\nMac version and windows version it appears to work just fine. Nonetheless,\nmy Mac version did trigger the error earlier right after upgrade to 1.0.5.\nBut restarting atom on the Mac fixed it.\n\nMy conclusion, is that the users that are experiencing this, must have\nother packages installed that are conflicting with the global.Function\noverwrite. The other packages must be doing something on save that\nis restoring it to the default global before lesscompile can finish the\nparsing.\n\nThis can be closed.\n\nOn Friday, August 7, 2015, Kevin Sawicki <notifications@github.com> wrote:\n\n> However, this does not appear to work in Atom 1.0.5.\n>\n> What error are you seeing?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/atom/atom/issues/8267#issuecomment-128856752>.\n>\n"}}