error

fun error(error: JsError = definedExternally)(source)

MDN Reference