Skip to content

Commit

Permalink
Update lib/internal/per_context/domexception.js
Browse files Browse the repository at this point in the history
Co-authored-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
flakey5 and jasnell authored Sep 22, 2022
1 parent 7fc758b commit 3c85e9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/internal/per_context/domexception.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ class DOMException {
});

if ('cause' in options) {
ObjectDefineProperty(this, 'cause', { __proto__: null, value: options.cause });
ObjectDefineProperty(this, 'cause', {
__proto__: null,
value: options.cause,
configurable: true,
writable: true,
enumerable: false,
});
}
} else {
internalsMap.set(this, {
Expand Down

0 comments on commit 3c85e9a

Please sign in to comment.