The EvalError
object indicates an error regarding the global eval()
function. This exception is not thrown by JavaScript anymore, however the EvalError
object remains for compatibility.
EvalError
is a serializable object, so it can be cloned with structuredClone()
or copied between Workers using postMessage()
.
EvalError
is a subclass of Error
.