Skip to content

Commit 3c85e9a

Browse files
flakey5jasnell
andauthored
Update lib/internal/per_context/domexception.js
Co-authored-by: James M Snell <[email protected]>
1 parent 7fc758b commit 3c85e9a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/internal/per_context/domexception.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ class DOMException {
6060
});
6161

6262
if ('cause' in options) {
63-
ObjectDefineProperty(this, 'cause', { __proto__: null, value: options.cause });
63+
ObjectDefineProperty(this, 'cause', {
64+
__proto__: null,
65+
value: options.cause,
66+
configurable: true,
67+
writable: true,
68+
enumerable: false,
69+
});
6470
}
6571
} else {
6672
internalsMap.set(this, {

0 commit comments

Comments
 (0)