--- title: Funcionalidades obsoletas slug: Web/JavaScript/Reference/Deprecated_and_obsolete_features tags: - JavaScript - Obsoleto translation_of: Web/JavaScript/Reference/Deprecated_and_obsolete_features original_slug: Web/JavaScript/Reference/Funcionalidades_obsoletas ---
Esta página lista as funcionalidades de JavaScript que estão obsoletas (ou seja, ainda disponíveis, mas planeadas para remoção) e obsoletas (isto é, não são mais utilizáveis).
Estas funcionalidades obsoletas ainda podem ser utilziadas, mas devem ser utilizadas com cuidado, pois espera-se que estas sejam removidas inteiramente no futuro. Deverá trabalhar para remover a utilização das mesmas do seu código..
The following properties are deprecated. This does not affect their use in {{jsxref("String.replace", "replacement strings", "", 1)}}:
| Propriedades | Descrição |
|---|---|
| {{jsxref("RegExp.n", "$1-$9")}} |
Parenthesized substring matches, if any. |
| {{jsxref("RegExp.input", "$_")}} | See input. |
| {{jsxref("RegExp.multiline", "$*")}} | See multiline. |
| {{jsxref("RegExp.lastMatch", "$&")}} | See lastMatch. |
| {{jsxref("RegExp.lastParen", "$+")}} | See lastParen. |
| {{jsxref("RegExp.leftContext", "$`")}} | See leftContext. |
| {{jsxref("RegExp.rightContext", "$'")}} | See rightContext. |
| {{jsxref("RegExp.input", "input")}} | The string against which a regular expression is matched. |
| {{jsxref("RegExp.lastMatch", "lastMatch")}} | The last matched characters. |
| {{jsxref("RegExp.lastParen", "lastParen")}} | The last parenthesized substring match, if any. |
| {{jsxref("RegExp.leftContext", "leftContext")}} | The substring preceding the most recent match. |
| {{jsxref("RegExp.rightContext", "rightContext")}} | The substring following the most recent match. |
The following are now properties of RegExp instances, no longer of the RegExp object:
| Propriedades | Descrição |
|---|---|
| {{jsxref("RegExp.global", "global")}} | Whether or not to test the regular expression against all possible matches in a string, or only against the first. |
| {{jsxref("RegExp.ignoreCase", "ignoreCase")}} | Whether or not to ignore case while attempting a match in a string. |
| {{jsxref("RegExp.lastIndex", "lastIndex")}} | The index at which to start the next match. |
| {{jsxref("RegExp.multiline", "multiline")}} | Whether or not to search in strings across multiple lines. |
| {{jsxref("RegExp.source", "source")}} | The text of the pattern. |
valueOf method is no longer specialized for RegExp. Use {{jsxref("Object.valueOf()")}}.__iterator__ is deprecated.hasOwn ({{bug(980565)}}, Firefox 33).getEnumerablePropertyKeys ({{bug(783829)}}, Firefox 37)getOwnPropertyNames ({{bug(1007334)}}, Firefox 33)keys ({{bug(1007334)}}, Firefox 33)flags parameter in {{jsxref("String.prototype.search")}}, {{jsxref("String.prototype.match")}}, and {{jsxref("String.prototype.replace")}} are deprecated.Estas funcionalidades obsoletas foram totalmente removidas do JavaScript e não podem mais ser utilizadas a partir da versão indicada do JavaScript.
| Property | Description |
|---|---|
| {{jsxref("Global_Objects/Object/count", "__count__")}} | Returns the number of enumerable properties directly on a user-defined object. |
| {{jsxref("Global_Objects/Object/Parent", "__parent__")}} | Points to an object's context. |
| {{jsxref("Global_Objects/Object/eval", "Object.prototype.eval()")}} | Evaluates a string of JavaScript code in the context of the specified object. |
| {{jsxref("Object.observe()")}} | Asynchronously observing the changes to an object. |
| {{jsxref("Object.unobserve()")}} | Remove observers. |
| {{jsxref("Object.getNotifier()")}} | Creates an object that allows to synthetically trigger a change. |
| Property | Description |
|---|---|
| {{jsxref("Global_Objects/Function/arity", "arity")}} | Number of formal arguments. |
| Property | Description |
| {{jsxref("Array.observe()")}} | Asynchronously observing changes to Arrays. |
| {{jsxref("Array.unobserve()")}} | Remove observers. |
See E4X for more information.
Consulte Sharp variables in JavaScript para mais informação.