| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/InternalError | [Back] [Original] |
Get to know MDN better
Esta pgina foi traduzida do ingls pela comunidade. Saiba mais e junte-se comunidade MDN Web Docs.
No padro: Este recurso no padronizado. No recomendamos o uso de recursos no padronizados em produo, pois eles tm suporte limitado nos navegadores e podem mudar ou ser removidos. No entanto, podem ser uma alternativa vivel em casos especficos onde no exista uma opo padro.
O objeto InternalError indica que um erro ocorreu internamente na engine do JavaScript.
Isso ocorre quando algo muito grande, por exemplo:
InternalError()Cria um um novo objeto InternalError.
InternalError.prototype.messageError message. Inherited from Error.
InternalError.prototype.nameError name. Inherited from Error.
InternalError.prototype.fileNamePath to file that raised this error. Inherited from Error.
InternalError.prototype.lineNumberLine number in file that raised this error. Inherited from Error.
InternalError.prototype.columnNumberColumn number in line that raised this error. Inherited from Error.
InternalError.prototype.stackStack trace. Inherited from Error.
This recursive function runs 10 times, as per the exit condition.
function loop(x) {
if (x >= 10) {
// "x >= 10" is the exit condition
return;
}
// do stuff
loop(x + 1); // the recursive call
}
loop(0);
Setting this condition to an extremely high value, won't work:
function loop(x) {
if (x >= 1000000000000) return;
// do stuff
loop(x + 1);
}
loop(0);
// InternalError: too much recursion
For more information, see InternalError: too much recursion.
Not part of any standard.
This page was last modified on 8 de nov. de 2023 by MDN contributors.
InternalErrorErrorObject/FunctionObject.prototype.__defineGetter__()Object.prototype.__defineSetter__()Object.prototype.__lookupGetter__()Object.prototype.__lookupSetter__()Object.prototype.hasOwnProperty()Object.prototype.isPrototypeOf()Object.prototype.propertyIsEnumerable()Object.prototype.toLocaleString()Object.prototype.toString()Object.prototype.valueOf()AggregateErrorEvalErrorRangeErrorReferenceErrorSyntaxErrorTypeErrorURIErrorYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |