edit-article
Home
Up
Delete
Article Name:
Article Description:
whats NEW ...] new functions, ] new ecmascript 5 features, ] other standardization work, ] new objects ] changes to global objects ] additional changes ] javascript api(spidermonkey) changes
Chapter ID/Name:
Status:
Write
Writing
Written
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">version - javascript 1.8.5</h1> <h2>[WHAT]</h2> <ol> <li>] the following list outlines features that are new to the js langauage in this version. </li> </ol> <h2>[WHY]</h2> <ol> <li><strong>] new functions</strong></li> <ol> <li>Object.create - Creates a new object with the specified prototype object and properties. bug 492840</li> <li>Object.defineProperty - Adds the named property described by a given descriptor to an object.</li> <li>Object.defineProperties - Adds the named properties described by the given descriptors to an object.</li> <li>Object.getOwnPropertyDescriptor - Returns a property descriptor for a named property on an object. bug 505587</li> <li>Object.keys - Returns an array of all enumerable properties on an object. bug 307791</li> <li>Object.getOwnPropertyNames - Returns an array of all enumerable and non-enumerable properties on an object. bug 518663</li> <li>Object.preventExtensions - Prevents any extensions of an object. bug 492849</li> <li>Object.isExtensible - Determine if extending of an object is allowed. bug 492849</li> <li>Object.seal - Prevents other code from deleting properties of an object. bug 492845</li> <li>Object.isSealed - Determine if an object is sealed. bug 492845</li> <li>Object.freeze - Freezes an object: other code can't delete or change any properties. bug 492844</li> <li>Object.isFrozen - Determine if an object was frozen. bug 492844</li> <li>Array.isArray - Checks if a variable is an array. bug 510537</li> <li>Date.toJSON - Returns a JSON format string for a Date object.</li> <li>Function.prototype.bind - Creates a new function that, when called, itself calls this function in the context provided (with a given sequence of arguments) bug 429507</li> </ol> <li><strong>] new ecmascript 5 features</strong></li> <ol> <li>get and set operators now allows the identifier to be numeric or a string. bug 520696</li> <li>Function.apply() can accept any array-like object as the arguments list, instead of only true arrays.</li> <li>strict mode support</li> <li>Array.toString() now works even on non-arrays by either returning the result of calling its join() method if one is available or by calling its toString() method.</li> </ol> <li><strong>] other standardization work</strong></li> <ol> <li>] </li> </ol> <li><strong>] new objects</strong></li> <ol> <li>Proxy - Offers support for creating Object and Function proxies that enable meta-programming in JavaScript</li> </ol> <li><strong>] changes to global objects</strong></li> <ol> <li>ISO 8601 support in Date - The Date object's parse() method now supports simple ISO 8601 format date strings.</li> <li>Global objects made read only The NaN, Infinity, and undefined global objects have been made read only, per the ECMAScript 5 specification.</li> </ol> <li><strong>] additional changes</strong></li> <ol> <li>obj.__parent__ and obj.__count__ become obsolete. Some information about why: SpiderMonkey change du jour: the special __parent__ property has been removed bug 551529 & bug 552560.</li> <li>Trailing commas no longer accepted in JSON.parse().</li> </ol> <li>] javascript api(spidermonkey) changes</li> </ol> <h2>[WHERE]</h2> <ol style="font-size: 10px; font-weight: normal;"> <li>] firefox 4</li> </ol> <h2>[WHEN]</h2> <ol style="font-size: 10px; font-weight: normal;"> <li>] </li> </ol> <h2>[EXAMPLE]</h2> <ol style="font-size: 10px; font-weight: normal;"> <li>] see REF (1) for usage examples of most </li> </ol> <h2>[HOW-TO]</h2> <ol style="font-size: 10px; font-weight: normal;"> <li>]</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>] MDN <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8.5" target="_blank">https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8.5</a></li> <li>] MSDN <a href="http://msdn.microsoft.com/en-us/library/ie/yek4tbz0(v=vs.94).aspx">http://msdn.microsoft.com/en-us/library/ie/yek4tbz0(v=vs.94).aspx</a></li> <li>] </li> </ol>