{"action":"created","issue":{"url":"https://api.github.com/repos/jsbin/jsbin/issues/1906","repository_url":"https://api.github.com/repos/jsbin/jsbin","labels_url":"https://api.github.com/repos/jsbin/jsbin/issues/1906/labels{/name}","comments_url":"https://api.github.com/repos/jsbin/jsbin/issues/1906/comments","events_url":"https://api.github.com/repos/jsbin/jsbin/issues/1906/events","html_url":"https://github.com/jsbin/jsbin/issues/1906","id":41854502,"number":1906,"title":"SyntaxError: Illegal break statement","user":{"login":"konijn","id":610951,"avatar_url":"https://avatars.githubusercontent.com/u/610951?v=3","gravatar_id":"","url":"https://api.github.com/users/konijn","html_url":"https://github.com/konijn","followers_url":"https://api.github.com/users/konijn/followers","following_url":"https://api.github.com/users/konijn/following{/other_user}","gists_url":"https://api.github.com/users/konijn/gists{/gist_id}","starred_url":"https://api.github.com/users/konijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konijn/subscriptions","organizations_url":"https://api.github.com/users/konijn/orgs","repos_url":"https://api.github.com/users/konijn/repos","events_url":"https://api.github.com/users/konijn/events{/privacy}","received_events_url":"https://api.github.com/users/konijn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jsbin/jsbin/labels/bug%20-%20confirmed","name":"bug - confirmed","color":"cc0000"},{"url":"https://api.github.com/repos/jsbin/jsbin/labels/type:loop-protect","name":"type:loop-protect","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2014-09-03T19:10:41Z","updated_at":"2016-10-09T17:07:00Z","closed_at":null,"body":"Please provide any additional information, record a screencast with http://quickcast.io or http://screenr.com and attach a screenshot if possible.\r\n\r\n**JS Bin info**\r\n\r\n* [http://jsbin.com/yofosa/1](http://jsbin.com/yofosa/1)\r\n* Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2143.0 Safari/537.36\r\n* konijn\r\n\r\nGreetings, when trying to execute http://jsbin.com/yofosa/1/edit I get the error mentioned in the subject. I am fairly sure this used to work.\r\n\r\nThe generate code has\r\n\r\ntry {/* Permute will give all permutations ;window.runnerWindow.protect({ line: 1, reset: true }); for the provided array ( sourceSet )\r\ndo not provide usedSet nor permutationSet\r\nBased on http://stackoverflow.com/a/9960925/7602\r\n*/\r\nfunction permute( sourceSet , usedSet , permutationsSet ) {;\r\nif (window.runnerWindow.protect({ line: 1 })) break;\r\n\r\n  permutationsSet = permutationsSet || [];\r\n  usedSet = usedSet || [];\r\n\r\nI am guessing my starting the code with a comment that has `for` in it is messing up your loop protection code. I read your blog and I was thinking, hmm, they could simply use esprima.js..\r\n\r\nT.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jsbin/jsbin/issues/comments/252498564","html_url":"https://github.com/jsbin/jsbin/issues/1906#issuecomment-252498564","issue_url":"https://api.github.com/repos/jsbin/jsbin/issues/1906","id":252498564,"user":{"login":"runsun","id":4404547,"avatar_url":"https://avatars.githubusercontent.com/u/4404547?v=3","gravatar_id":"","url":"https://api.github.com/users/runsun","html_url":"https://github.com/runsun","followers_url":"https://api.github.com/users/runsun/followers","following_url":"https://api.github.com/users/runsun/following{/other_user}","gists_url":"https://api.github.com/users/runsun/gists{/gist_id}","starred_url":"https://api.github.com/users/runsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runsun/subscriptions","organizations_url":"https://api.github.com/users/runsun/orgs","repos_url":"https://api.github.com/users/runsun/repos","events_url":"https://api.github.com/users/runsun/events{/privacy}","received_events_url":"https://api.github.com/users/runsun/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T17:06:59Z","updated_at":"2016-10-09T17:06:59Z","body":"Encountered this bug at a code below :<code><pre>this.footer= $('&lt;div>'\r\n              , { id: `${this.id}_footer`\r\n                , className: 'Panel_footer' \r\n                , css: { padding: '3px'\r\n                        , background: '#666' \r\n                        , border:'2px #666 inset'\r\n                        , display: opt.showFooter?'flex':'none'\r\n                        } // <==== {{{ Uncaught SyntaxError: Illegal break statement }}}\r\n                 }\r\n              ).appendTo(this.wrapper)[0]\r\n</pre></code>\r\n\r\nThis is part of javascript for a panel class, in which I have `.header`, `.content` and `.footer`, all have the same structure, but only the `.header` above generates the error.\r\n\r\nAlso, if I copy and paste the entire javascript code to a new file, there is no error. "}}
{"actor":{"display_login":"runsun"}}