"use strict"; はグローバルコードに書いても良い

JSLint ではグローバルコードに 'use strict'; を書くとエラーになるが、ECMAScript 5 違反ではないらしい。(おそらく、Crockford氏の独自の思想によるエラーだと思う)


think49
'use strict'; はグローバルコードに書いてはいけないんだったかな。JSLint で怒られる…。
think49
"- Global code is strict global code if it begins with a Directive Prologue that contains a Use Strict ..."
think49
@ グローバルコードで 'use strict'; して問題ないことを確認した。勿論、"use strict"; でも良い。
.1
think49
(function () { 'use strict'; })(); // JSLint は "Move the invocation into the parens that contain the function." のエラーを出力する。なぜ…?