skip to Main Content

Javascript – Why does DOMException constructor directly derive from Function.prototype but DOMException.prototype directly from Error.prototype?

In other words, why isn't DOMException like AggregateError, EvalError, etc? Both expressions evaluate to true: Object.getPrototypeOf(DOMException) === Function.prototype Object.getPrototypeOf(DOMException.prototype) === Error.prototype I used to think the following generalization has no counterexamples: If X and Y are constructor functions, and Y…

VIEW QUESTION
Back To Top
Search