Can someone point out the differences in implementation of ECMAScript 3rd edition in today’s browsers? (Chrome, Safari, IE8, FF)
Are we safe when using ECMAScript 3 standards (and not the extensions that FF and IE have to JScript and JavaScript)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, of course there are implementation bugs, the most serious that I’ve had to deal with are on JScript, the Microsoft implementation of the standard, for example:
Identifier of FunctionExpressions should be accessible only in the inner scope of the function itself:
The bug is present on all current IE versions, it has just been fixed on IE9 Previews.
And actually is even worse, it creates two function objects, for example:
Another well known JScript bug is the “DontEnum Bug”, if an object in its scope chain contains a property that is not enumerable (has the
{ DontEnum }attribute), if the property is shadowed on other object, it will stay as non-enumerable, for example:It will evaluate to
falseon IE, this causes problems when using thefor-instatement, because the properties will not be visited.JScript is the implementation that has the largest number of problems -although the IE9 implementation is getting really way better-.
Recommended article: