put the first use of the object in a try--catch loop, and handle the exception as you would normally do in JavaScript.
↧
put the first use of the object in a try--catch loop, and handle the exception as you would normally do in JavaScript.