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

strict mode always ON #12

Open
WurmD opened this issue Dec 3, 2022 · 0 comments
Open

strict mode always ON #12

WurmD opened this issue Dec 3, 2022 · 0 comments

Comments

@WurmD
Copy link

WurmD commented Dec 3, 2022

This

{
    init: function(elevators, floors) {
    },
    update: function(dt, elevators, floors) {
    }
}

yields 2:11 error Parsing error: In strict mode code, functions can only be declared at top level or inside a block irrespective of the strict checkbox being ticked or not.

  • If this is a bug "the strict mode always ON", then this is the bug report
  • If this check functions can only be declared at top level or inside a block does not belong to the strict check please clarify the error message
  • Please clarify what exactly is wrong with that snippet of code, as the functions seem to be declared inside a block
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

1 participant