throwCustomError
fun throwCustomError(cx: Context, scope: Scriptable, constructorName: String, message: String): JavaScriptException
Throws an error of a named constructor found in scope, the way a builtin would build it.
Throws an error of a named constructor found in scope, the way a builtin would build it.