javascript - JSLint is suddenly reporting: Use the function form of "use strict"

Опубликовано: 15 Октябрь 2024
на канале: Code Samples
466
11

I include the statement:
"use strict";

at the beginning of most of my Javascript files.
JSLint has never before warned about this. But now it is, saying:

Use the function form of "use strict".

Does anyone know what the "function form" would be?
Strict Mode Is Coming To Town: http://www.yuiblog.com/blog/2010/12/1...
Zhami: https://stackoverflow.com/a/11375064/...
Laith Shadeed: https://stackoverflow.com/posts/44625...
JSHint source code: https://github.com/jshint/jshint/blob...
docs: http://www.jshint.com/docs/
.jshintrc at github: https://github.com/jshint/jshint/blob...