Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Edit Bug #11

Open
tobyf93 opened this issue Apr 11, 2017 · 2 comments
Open

Code Edit Bug #11

tobyf93 opened this issue Apr 11, 2017 · 2 comments

Comments

@tobyf93
Copy link

tobyf93 commented Apr 11, 2017

// 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:

  1. http://latentflip.com/loupe
  2. Copy/paste code snippet
  3. Click 'Save + Run'
@jweinsteincbt
Copy link

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');

http://latentflip.com/loupe/?code=Ly8gQ29kZSBTbmlwcGV0CmNvbnNvbGUubG9nKCdBJyk7CnNldFRpbWVvdXQoZnVuY3Rpb24gQigpIHsgY29uc29sZS5sb2coJ0InKTsgfSwgMCk7CnNldFRpbWVvdXQoZnVuY3Rpb24gQygpIHsgY29uc29sZS5sb2coJ0MnKTsgfSwgNTAwMCk7CmNvbnNvbGUubG9nKCdEJyk7!!!

@tobyf93
Copy link
Author

tobyf93 commented May 24, 2017

Thanks @jweinsteincbt, didn't think of that. Perhaps ES6 code has to result in an error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants