I tried the following variant:
Object.defineProperty(window, "bar", { value: "a", writable: false });
bar = "b";
alert("bar=" + bar);
In all browsers I get an an alert with "a"!!
With "use strict", I get an error (bar is read-only) in FF and Chrome
(makes me feel better about JS) but I still get the alert with "a" in
IE 9.
So, yes, IE 9 does not implement strict mode.
Bruno
On Dec 10, 4:05 am, Joel Dart <[email protected]> wrote:
> The reason it doesn't throw is because strict mode isn't implemented in IE9.
> IE10 is the first browser in the IE family to implement strict.
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]