article

version - javascript 1.8.5

[WHAT]

  1. ] the following list outlines features that are new to the js langauage in this version. 

[WHY]

  1. ] new functions
    1. Object.create - Creates a new object with the specified prototype object and properties. bug 492840
    2. Object.defineProperty - Adds the named property described by a given descriptor to an object.
    3. Object.defineProperties - Adds the named properties described by the given descriptors to an object.
    4. Object.getOwnPropertyDescriptor - Returns a property descriptor for a named property on an object. bug 505587
    5. Object.keys - Returns an array of all enumerable properties on an object. bug 307791
    6. Object.getOwnPropertyNames - Returns an array of all enumerable and non-enumerable properties on an object. bug 518663
    7. Object.preventExtensions - Prevents any extensions of an object. bug 492849
    8. Object.isExtensible - Determine if extending of an object is allowed. bug 492849
    9. Object.seal - Prevents other code from deleting properties of an object. bug 492845
    10. Object.isSealed - Determine if an object is sealed. bug 492845
    11. Object.freeze - Freezes an object: other code can't delete or change any properties. bug 492844
    12. Object.isFrozen - Determine if an object was frozen. bug 492844
    13. Array.isArray - Checks if a variable is an array. bug 510537
    14. Date.toJSON - Returns a JSON format string for a Date object.
    15. 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
  2. ] new ecmascript 5 features
    1. get and set operators now allows the identifier to be numeric or a string. bug 520696
    2. Function.apply() can accept any array-like object as the arguments list, instead of only true arrays.
    3. strict mode support
    4. 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.
  3. ] other standardization work
  4. ] new objects
    1. Proxy - Offers support for creating Object and Function proxies that enable meta-programming in JavaScript
  5. ] changes to global objects
    1. ISO 8601 support in Date - The Date object's parse() method now supports simple ISO 8601 format date strings.
    2. Global objects made read only The NaN, Infinity, and undefined global objects have been made read only, per the ECMAScript 5 specification.
  6. ] additional changes
    1. 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.
    2. Trailing commas no longer accepted in JSON.parse().
  7. ] javascript api(spidermonkey) changes

[WHERE]

  1. ] firefox 4

[WHEN]

[EXAMPLE]

  1. ] see REF (1) for usage examples of most 

[HOW-TO]

  1. ]

[REFERENCE]

  1. ] MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8.5
  2. ] MSDN http://msdn.microsoft.com/en-us/library/ie/yek4tbz0(v=vs.94).aspx
Details Photos Edit more

Details

ID: 1704

NAME: javascript-1-8-5

DESCRIPTION: whats NEW ...] new functions, ] new ecmascript 5 features, ] other standardization work, ] new objects ] changes to global objects ] additional changes ] javascript api(spidermonkey) changes

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and