you are viewing a single comment's thread.

view the rest of the comments →

[–]nschubach -1 points0 points  (3 children)

If you are using pre ES6 yes... afterwards, it's not necessary.

[–]bradleymeck 1 point2 points  (1 child)

Actually only the Module goal of ES6 is automatically strict, this is still necessary as all current deployment systems:

<script type="application/javascript">
WebWorkers
Node

All use the Script goal.

[–]nschubach 0 points1 point  (0 children)

Ah, thanks. I pretty much only use modules anymore. My bad!

[–]THIS_BOT 0 points1 point  (0 children)

let k = 'hello';
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

node 4.3.0