{"action":"created","issue":{"url":"https://api.github.com/repos/google/traceur-compiler/issues/1636","labels_url":"https://api.github.com/repos/google/traceur-compiler/issues/1636/labels{/name}","comments_url":"https://api.github.com/repos/google/traceur-compiler/issues/1636/comments","events_url":"https://api.github.com/repos/google/traceur-compiler/issues/1636/events","html_url":"https://github.com/google/traceur-compiler/issues/1636","id":54504219,"number":1636,"title":"Lets leak through eval","user":{"login":"tolmasky","id":23753,"avatar_url":"https://avatars.githubusercontent.com/u/23753?v=3","gravatar_id":"","url":"https://api.github.com/users/tolmasky","html_url":"https://github.com/tolmasky","followers_url":"https://api.github.com/users/tolmasky/followers","following_url":"https://api.github.com/users/tolmasky/following{/other_user}","gists_url":"https://api.github.com/users/tolmasky/gists{/gist_id}","starred_url":"https://api.github.com/users/tolmasky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolmasky/subscriptions","organizations_url":"https://api.github.com/users/tolmasky/orgs","repos_url":"https://api.github.com/users/tolmasky/repos","events_url":"https://api.github.com/users/tolmasky/events{/privacy}","received_events_url":"https://api.github.com/users/tolmasky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-15T21:06:35Z","updated_at":"2015-01-15T21:30:57Z","closed_at":"2015-01-15T21:30:57Z","body":"If ES6 land:\r\n\r\n    if (true)\r\n    {\r\n        let x = 9;\r\n        console.log(eval(\"x\"));\r\n    }\r\n    console.log(eval(\"x\"));\r\n\r\nYou expect to see 9, then an Error.\r\n\r\nHowever, in traceur land:\r\n\r\nYou see 9 twice. Generating something like this would save it:\r\n\r\n    if (true)\r\n    (function() { var x = 9; console.log(eval(\"x\")); })()\r\n\r\n    console.log(eval(\"x\"));\r\n"},"comment":{"url":"https://api.github.com/repos/google/traceur-compiler/issues/comments/70165554","html_url":"https://github.com/google/traceur-compiler/issues/1636#issuecomment-70165554","issue_url":"https://api.github.com/repos/google/traceur-compiler/issues/1636","id":70165554,"user":{"login":"arv","id":45845,"avatar_url":"https://avatars.githubusercontent.com/u/45845?v=3","gravatar_id":"","url":"https://api.github.com/users/arv","html_url":"https://github.com/arv","followers_url":"https://api.github.com/users/arv/followers","following_url":"https://api.github.com/users/arv/following{/other_user}","gists_url":"https://api.github.com/users/arv/gists{/gist_id}","starred_url":"https://api.github.com/users/arv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arv/subscriptions","organizations_url":"https://api.github.com/users/arv/orgs","repos_url":"https://api.github.com/users/arv/repos","events_url":"https://api.github.com/users/arv/events{/privacy}","received_events_url":"https://api.github.com/users/arv/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T21:30:57Z","updated_at":"2015-01-15T21:30:57Z","body":"We don't fully support `eval`. It would require compiling the string at runtime, knowing the context etc."}}