Your Search Results

    Новое в JavaScript 1.8.5

    This translation is incomplete. Please help translate this article from English.

    The following is a changelog for JavaScript 1.8.5. This version was included in Firefox 4.

    New features in JavaScript 1.8.5

    New functions

    Function Description
    Object.create() Creates a new object with the specified prototype object and properties. ошибка 492840
    Object.defineProperty() Adds the named property described by a given descriptor to an object.
    Object.defineProperties() Adds the named properties described by the given descriptors to an object.
    Object.getOwnPropertyDescriptor() Returns a property descriptor for a named property on an object. ошибка 505587
    Object.keys() Returns an array of all enumerable properties on an object. ошибка 307791
    Object.getOwnPropertyNames() Returns an array of all enumerable and non-enumerable properties on an object. ошибка 518663
    Object.preventExtensions() Prevents any extensions of an object. ошибка 492849
    Object.isExtensible() Determine if extending of an object is allowed. ошибка 492849
    Object.seal() Prevents other code from deleting properties of an object. ошибка 492845
    Object.isSealed() Determine if an object is sealed. ошибка 492845
    Object.freeze() Freezes an object: other code can't delete or change any properties. ошибка 492844
    Object.isFrozen() Determine if an object was frozen. ошибка 492844
    Array.isArray() Checks if a variable is an array. ошибка 510537
    Date.prototype.toJSON() Returns a JSON format string for a Date object.
    Function.prototype.bind() Creates a new function that, when called, itself calls this function in the context provided (with a given sequence of arguments) ошибка 429507

    New ECMAScript5 features

    Other standardization work

    Various non-standard syntaxes for defining getters and setters have been removed; ECMAScript 5 defined syntax has not been changed. These were all pretty esoteric and rarely used; if this affects you, see this blog post for details.

    New objects

    Object Description
    Proxy Offers support for creating Object and Function proxies that enable meta-programming in JavaScript.

    Changed functionality in JavaScript 1.8.5

    Метки документа и участники

    Contributors to this page: yuraantonov, fscholz, teoli
    Обновлялась последний раз: fscholz,
    Скрыть боковую панель