Skip to content

Commit 4102de9

Browse files
committed
add comments
1 parent 865c576 commit 4102de9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/internal/per_context/domexception.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ const disusedNamesSet = new SafeSet()
5151

5252
class DOMException {
5353
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.
5457
const error = ReflectConstruct(Error, [], new.target);
5558

5659
if (options && typeof options === 'object') {

0 commit comments

Comments
 (0)