Jonas Sicking (2013-07-10T19:02:37.000Z)
github at esdiscuss.org (2013-07-12T02:27:45.718Z)
Note that ```js (new DOMError) instanceof Error; ``` returns `false`. So the DOM does do the "strongly discouraged" thing. Is this ok or bad? Also, the DOM does not create a new class for each different value of `.name`. I.e. you can get a `DOMError` whose `.name` is `"NetworkError"` or `"AbortError"`. `DOMError` even has a constructor which allows setting `.name` to anything: `new DOMError(name, message);` In fact, there are no defined situations where the DOM creates `DOMError` objects whose `.name` is `"DOMError"`. Again, is this ok or is it bad practice?