We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865c576 commit 4102de9Copy full SHA for 4102de9
1 file changed
lib/internal/per_context/domexception.js
@@ -51,6 +51,9 @@ const disusedNamesSet = new SafeSet()
51
52
class DOMException {
53
constructor(message = '', options = 'Error') {
54
+ // The DOMException class must not inherit from the Error class,
55
+ // but its instance inherit from Error.prototype.
56
+ // The stack property and [[ErrorData]] internal slot are given.
57
const error = ReflectConstruct(Error, [], new.target);
58
59
if (options && typeof options === 'object') {
0 commit comments