Skip to content

Commit

Permalink
fixup! lib: add cause to DOMException
Browse files Browse the repository at this point in the history
  • Loading branch information
flakey5 committed Sep 17, 2022
1 parent 1c5b00f commit 400012e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/per_context/domexception.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DOMException {
constructor(message = '', options = 'Error') {
ErrorCaptureStackTrace(this);

if (options && typeof options === 'string') {
if (options && typeof options === 'object') {
const { name, cause } = options;
internalsMap.set(this, {
message: `${message}`,
Expand Down

0 comments on commit 400012e

Please sign in to comment.