diff --git a/ext/web/01_dom_exception.js b/ext/web/01_dom_exception.js index 1cba59886364da..db2996e0c674d1 100644 --- a/ext/web/01_dom_exception.js +++ b/ext/web/01_dom_exception.js @@ -108,7 +108,7 @@ class DOMException { ); const code = nameToCodeMapping[name] ?? 0; - // execute Error constructor to have [[ErrorData]] internal slot + // execute Error constructor to have stack property and [[ErrorData]] internal slot const error = ReflectConstruct(Error, [], new.target); error[_message] = message; error[_name] = name; diff --git a/tests/wpt/runner/expectation.json b/tests/wpt/runner/expectation.json index f7800be57504a5..6025ce42a46d81 100644 --- a/tests/wpt/runner/expectation.json +++ b/tests/wpt/runner/expectation.json @@ -9751,7 +9751,6 @@ "structured-cloning-error-stack-optional.sub.window.html": [ "page-created Error (cross-site iframe)", "page-created Error (same-origin iframe)", - "page-created DOMException (structuredClone())", "page-created DOMException (cross-site iframe)", "page-created DOMException (same-origin iframe)", "JS-engine-created TypeError (cross-site iframe)", @@ -9759,8 +9758,7 @@ "web API-created TypeError (cross-site iframe)", "web API-created TypeError (same-origin iframe)", "web API-created DOMException (cross-site iframe)", - "web API-created DOMException (same-origin iframe)", - "page-created DOMException (worker)" + "web API-created DOMException (same-origin iframe)" ], "transfer-errors.window.html": false, "window-postmessage.window.html": false