We also thought so but MDN says the declaration has to be outside the function, but that the function will still run in strict mode
— I tested and found it was true
— So you can't declare functions like that as strict mode, only the enclosing scope, which in turn makes the function run in strict mode. It's more an issue of the placement of that declaration than anything