We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Diese Übersetzung ist unvollständig. Bitte helfen Sie, diesen Artikel aus dem Englischen zu übersetzen.

Folgendes sind neuerungen in JavaScript 1.8.5. Diese Version kam mit Firefox 4 raus.

Neue Features in JavaScript 1.8.5

Neue Funktionen

Funktion Beschreibung
Object.create() Erstellt ein neues Objekt mit dem Spezifiziertem Prototyp Objekt und properties. Bug 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. Bug 505587
Object.keys() Returns an array of all enumerable properties on an object. Bug 307791
Object.getOwnPropertyNames() Returns an array of all enumerable and non-enumerable properties on an object. Bug 518663
Object.preventExtensions() Prevents any extensions of an object. Bug 492849
Object.isExtensible() Determine if extending of an object is allowed. Bug 492849
Object.seal() Prevents other code from deleting properties of an object. Bug 492845
Object.isSealed() Determine if an object is sealed. Bug 492845
Object.freeze() Freezes an object: other code can't delete or change any properties. Bug 492844
Object.isFrozen() Determine if an object was frozen. Bug 492844
Array.isArray() Checks if a variable is an array. Bug 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) Bug 429507

Neue 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.

Neue Objekte

Objekt Beschreibung
Old Proxy API Offers support for creating Object and Function proxies that enable meta-programming in JavaScript.

Funktionalität geändert in JavaScript 1.8.5

Schlagwörter des Dokuments und Mitwirkende

Mitwirkende an dieser Seite: schlagi123, Chris-CR, fscholz, AngelSankturio, eminor
Zuletzt aktualisiert von: schlagi123,