Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
* Some parts of this feature may have varying levels of support.
EvalError オブジェクトは、グローバルの eval() 関数に関するエラーを示します。この例外はもう JavaScript からは発生しなくなっていますが、互換性のために EvalError オブジェクトが残っています。
EvalError は シリアライズ可能オブジェクト ですので、structuredClone() でクローンされるか、postMessage() を使い ワーカー の間でコピーされます。
EvalError は Error のサブクラスです。
新しい EvalError オブジェクトを生成します。
親である Error から継承したプロパティがあります。
これらのプロパティは EvalError.prototype に定義されており、すべての EvalError インスタンスで共有されます。
EvalError.prototype.constructorインスタンスオブジェクトを作成したコンストラクター関数。EvalError インスタンスの場合、初期値は EvalError コンストラクターです。
EvalError.prototype.nameエラー名です。EvalError.prototype.name の場合、初期値は "EvalError" です。
親である Error から継承したプロパティがあります。
| ECMAScript® 2027 Language Specification # sec-native-error-types-used-in-this-standard-evalerror |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年5月25日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.