Code Edit Bug
tobyf93 opened this issue · 2 comments
tobyf93 commented
// Code Snippet
console.log('A');
setTimeout(() => console.log('B'), 0);
setTimeout(() => console.log('C'), 5000);
console.log('D');
The default code snippet seems to get executed instead of the one i'm pasting in...
Steps to reproduce:
- http://latentflip.com/loupe
- Copy/paste code snippet
- Click 'Save + Run'
jweinsteincbt commented
Looking at the console.log, it looks like ES6 => syntax is not supported.
Try this instead:
// Code Snippet
console.log('A');
setTimeout(function B() { console.log('B'); }, 0);
setTimeout(function C() { console.log('C'); }, 5000);
console.log('D');
tobyf93 commented
Thanks @jweinsteincbt, didn't think of that. Perhaps ES6 code has to result in an error...