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

warning: function statements are not standard #46

Closed
zengming00 opened this issue Sep 14, 2017 · 1 comment
Closed

warning: function statements are not standard #46

zengming00 opened this issue Sep 14, 2017 · 1 comment

Comments

@zengming00
Copy link

zengming00 commented Sep 14, 2017

  1 if(true){
  2   function foo(){
  3     print('this is foo');
  4   }
  5 }
  6 foo();
  7 print('done.');

test2.js:2: warning: function statements are not standard

@ccxvii
Copy link
Owner

ccxvii commented Sep 14, 2017

Yes. Function statements are not part of the ECMAScript 5 standard. MuJS supports them anyway, but provides a friendly warning.

@ccxvii ccxvii closed this as completed Sep 14, 2017
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