4.0 is no more or less strict than 3.x. It has exactly the same behavior for JS code; the only way that code would cause an error is if you put “#pragma strict” at the top, or if you switched to iOS publishing, which automatically compiles everything as if it was using “#pragma strict”.