pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/EvalError

tatic/client/inter-latin.9a3b1bc220d426ef.woff2" as="font" type="font/woff2" crossorigen="anonymous" fetchpriority="low" />

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

EvalError

Baseline 広く利用可能 *

この機能は広く実装されており、多くのバージョンの端末やブラウザーで動作します。2015年7月以降、すべてのブラウザーで利用可能です。

* この機能の一部は、対応レベルが異なる場合があります。

EvalError オブジェクトは、グローバルの eval() 関数に関するエラーを示します。この例外はもう JavaScript からは発生しなくなっていますが、互換性のために EvalError オブジェクトが残っています。

EvalErrorシリアライズ可能オブジェクト ですので、structuredClone() でクローンされるか、postMessage() を使い ワーカー の間でコピーされます。

EvalErrorError のサブクラスです。

コンストラクター

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("Hello");
} catch (e) {
  console.log(e instanceof EvalError); // true
  console.log(e.message); // "Hello"
  console.log(e.name); // "EvalError"
  console.log(e.stack); // エラースタック
}

仕様書

仕様書
ECMAScript® 2027 Language Specification
# sec-native-error-types-used-in-this-standard-evalerror

ブラウザーの互換性

関連情報

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy