We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e7b108 commit 0140a98Copy full SHA for 0140a98
lib/internal/domexception.js
@@ -44,7 +44,10 @@ class DOMException extends Error {
44
}
45
46
Object.defineProperties(DOMException.prototype, {
47
- [Symbol.toStringTag]: { configurable: true, value: 'DOMException' }
+ [Symbol.toStringTag]: { configurable: true, value: 'DOMException' },
48
+ name: { enumerable: true, configurable: true },
49
+ message: { enumerable: true, configurable: true },
50
+ code: { enumerable: true, configurable: true }
51
});
52
53
for (const [name, codeName, value] of [
0 commit comments