Open
Description
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 thestrict
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
Labels
No labels