Re: function_strict warning and CommonJS modules
- --- In email@example.com, "Douglas Crockford" <douglas@...> wrote:
>Great. Thanks. Validated.
> When using the Assume node.js option, JSLint will now tolerate the file level use strict pragma.
>In the context we (the op, me, and other nodeJS module coders) are using, the code is effectively wrapped/contained in an anonymous function, though not one that appears in the file. It would be functionally redundant to wrap the content of a CommonJS module file in yet another (anonymous, immediate) function.
> I think you would be smarter to use the function use strict pragma.