[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/InternalError [Back]  [Original]

InternalError - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

InternalError

: . . .

InternalError JavaScript .

.

  • "too many switch cases", (swich case )
  • "too many parentheses in regular expression", ( )
  • "array initializer too large", ( )
  • "too much recursion". ( )

InternalError Error .

In this article

InternalError()

InternalError .

Error .

InternalError.prototype , InternalError .

InternalError.prototype.constructor

. InternalError InternalError .

InternalError.prototype.name

. InternalError.prototype.name "InternalError".

Error .

10 .

js
function loop(x) {
  if (x >= 10) {
    // "x >= 10"   .
    return;
  }
  //  
  loop(x + 1); //  
}
loop(0);

.

js
function loop(x) {
  if (x >= 1000000000000) return;

  //  
  loop(x + 1);
}
loop(0);

// InternalError: too much recursion(   )

InternalError: too much recursion( ) .

.


Web Proxy Viewer  |  New URL  |  Original Page