Skip to content

strict mode always ON #12

Open
Open
@WurmD

Description

@WurmD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions