This article is in need of an editorial review.
This translation is incomplete. Please help translate this article from English.
非標準
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
概要
JavaScriptエンジン内部で起こったエラーを示します。例えば、: "InternalError: too much recursion"
構文
new InternalError([message[, fileName[, lineNumber]]])
引数
message- オプション。人間が読める形式のエラーの説明
fileName- オプション。例外を起こしたコードを含むファイルの名称
lineNumber- オプション。例外を起こしたコードの行番号
説明
JavaScriptエンジン内部エラーが起こったときはいつでも、InternalErrorはスローされます。
例ではたいていは何かが大きすぎる時です。:
- "too many switch cases",
- "too many parentheses in regular expression",
- "array initializer too large",
- "too much recursion".
プロパティ
InternalError.prototypeInternalErrorオブジェクトにプロパティの追加を許可します。
メソッド
グローバルInternalErrorはメソッドを持たない。しかし、プロトタイプチェインを通してメソッドを継承します。
InternalError インスタンス
プロパティ
InternalError.prototype.constructor- Specifies the function that created an instance's prototype.
InternalError.prototype.message- Error message. Inherited from
Error. InternalError.prototype.name- Error name. Inherited from
Error. InternalError.prototype.fileName- Path to file that raised this error. Inherited from
Error. InternalError.prototype.lineNumber- Line number in file that raised this error. Inherited from
Error. InternalError.prototype.columnNumber- Column number in line that raised this error. Inherited from
Error. InternalError.prototype.stack- Stack trace. Inherited from
Error.
メソッド
Although the InternalError prototype object does not contain any methods of its own, InternalError instances do inherit some methods through the prototype chain.
仕様
すべての仕様で実装されておりません。
ブラウザ実装状況
| 機能 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| 基本サポート | 未サポート | (有) | 未サポート | 未サポート | 未サポート |
| 機能 | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| 基本サポート | 未サポート | 未サポート | (有) | 未サポート | 未サポート | 未サポート |