Sur cette pageEvalError Alias to native globalThis.EvalError 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.@exampleimport { EvalError } from '@w5s/error';try { throw new EvalError("Hello");} catch (e) { console.log(e instanceof RangeEvalErrorError); // true console.log(e.message); // "Hello" console.log(e.name); // "EvalError" console.log(e.stack); // Stack of the error}HierarchyErrorEvalErrorIndex ConstructorsconstructorPropertiesnameConstructors externalconstructornew EvalError(message): EvalErrornew EvalError(message, options): EvalErrorProperties namename: EvalError
Alias to native globalThis.EvalError
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.