abort

suspend fun abort(reason: JsError? = definedExternally)(source)

MDN Reference