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

EvalError - 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

EvalError

Baseline Widely available *

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

* Some parts of this feature may have varying levels of support.

EvalError , eval(). JavaScript , EvalError .

EvalError , structuredClone() postMessage().

EvalError Error.

In this article

EvalError()

EvalError.

Error.

EvalError.prototype EvalError.

EvalError.prototype.constructor

-, . EvalError EvalError.

EvalError.prototype.name

. EvalError.prototype.name "EvalError".

Error.

EvalError

js
try {
  throw new EvalError("");
} catch (e) {
  console.log(e instanceof EvalError); // true
  console.log(e.message); // ""
  console.log(e.name); // "EvalError"
  console.log(e.stack); //  
}

Specification
ECMAScript 2027 LanguageSpecification
# sec-native-error-types-used-in-this-standard-evalerror


Web Proxy Viewer  |  New URL  |  Original Page