Which (javascript) environments support ECMAscript 5 strict mode? (aka “use strict”)

前端 未结 4 1201
陌清茗
陌清茗 2020-12-24 06:26

ECMAScript 5 is in its final draft as I write this; It is due to include a strict mode which will prevent you from assigning to the global object, using eval, and other rest

4条回答
  •  没有蜡笔的小新
    2020-12-24 06:31

    Update:

    See my compatibility table.

    Original response:

    None as of now.

    Raphael Speyer was working on Mozilla implementation for Rhino during this summer, and afaik, their implementation is pretty close to completion.

    I know (based on info from ES-discuss list) that Microsoft is planning to include some of ES5 features into upcoming versions of IE and they might very well be working on strict mode implementation right now (as you probably know, IE8 already includes some of ES5 features, like Object.defineProperty).

    There's also Google's Caja project which somewhat emulates behavior of strict mode in some of its variations (Valija, Cajita, etc).

    Crockford also recently added this option to JSLint, but I'm not sure if it actually triggers any additional validations (as per ES5-strict rules).

提交回复
热议问题