Skip to main content

dom_exception

Function dom_exception 

Source
pub fn dom_exception(args: &[Value]) -> Value
Expand description

new DOMException(message, name).

The class node’s AbortSignal.reason rejects with. Its name is the second ARGUMENT (defaulting to "Error"), not the class name, and its code is the legacy number that name maps to.