Standard built-ins
EvalError()
A historical Error subtype retained for compatibility; modern eval does not generally use it for failures. Creating it does not throw automatically.
Formal Syntax & Structure
javascript syntaxjavascript
new EvalError([message], [options])Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| message | String | Diagnostic text. |
| options | Object | Optional cause property. |
Return Value
EvalError
Error subtype instance.
Working Example
Example Snippetjavascript
console.log(new EvalError("example").name);