We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c5b00f commit 400012eCopy full SHA for 400012e
lib/internal/per_context/domexception.js
@@ -52,7 +52,7 @@ class DOMException {
52
constructor(message = '', options = 'Error') {
53
ErrorCaptureStackTrace(this);
54
55
- if (options && typeof options === 'string') {
+ if (options && typeof options === 'object') {
56
const { name, cause } = options;
57
internalsMap.set(this, {
58
message: `${message}`,
0 commit comments