Message from JavaScript discussions

May 2017

— The quality of information is questionable but it appears the error has to do with the position of the strict mode declaration, not the function itself

Message permanent page


This statement makes me think that: "If the function should be in strict mode, and the entire script or enclosing function is also okay to be in strict mode, you can move the "use strict" directive outside of the function"

— Which amounts to forcing you to use strict mode outside the function in order to use it inside the function

Message permanent page

— It's provable

— TCO only works for strict mode functions

— I'm just trying to find that on google

— Try putting use strict outside two recursive functions, one with complex arguments, one without

— The one with won't utilize TCO

— I think this is false as you may not declare strict mode inside those, however declaring it just outside them, as far as I can tell, does make them run in strict mode

Message permanent page

— It does, EXCEPT for the ones with complex arguments

— I did a quick check and I think you are right

— Or, it did not work, actually... the vm doesn't apply strict mode properly so i will try again in a REPL

Message permanent page