diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index ca6563e61c5e3a..60de505d3e29ce 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -34,7 +34,7 @@ Last update: - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi - WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/591c95ce61/WebCryptoAPI -- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions +- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/2f96fa1996/webidl/ecmascript-binding/es-exceptions - webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel - webstorage: https://github.com/web-platform-tests/wpt/tree/1291340aaa/webstorage diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index 97b60395f4924f..5fdf34977e6a97 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -96,7 +96,7 @@ "path": "WebCryptoAPI" }, "webidl/ecmascript-binding/es-exceptions": { - "commit": "a370aad338d6ed743abb4d2c6ae84a7f1058558c", + "commit": "2f96fa19966d6bc19e979a09479ac8a7aa337c54", "path": "webidl/ecmascript-binding/es-exceptions" }, "webmessaging/broadcastchannel": { diff --git a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constants.any.js b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constants.any.js index bb846a494eb898..9b6978783723eb 100644 --- a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constants.any.js +++ b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constants.any.js @@ -1,3 +1,5 @@ +// META: global=window,dedicatedworker,shadowrealm + 'use strict'; test(function() { diff --git a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype.any.js b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype.any.js index a015470cad6bf7..011521652654c9 100644 --- a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype.any.js +++ b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype.any.js @@ -1,3 +1,5 @@ +// META: global=window,dedicatedworker,shadowrealm + test(function() { assert_own_property(self, "DOMException", "property of global"); diff --git a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js index e9917af2287490..c4ddabdafd4597 100644 --- a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js +++ b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js @@ -1,3 +1,5 @@ +// META: global=window,dedicatedworker,shadowrealm + 'use strict'; test(function() { diff --git a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js index cd4e5b6341948c..d1c86930d4cd8e 100644 --- a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js +++ b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js @@ -1,3 +1,5 @@ +// META: global=window,dedicatedworker,shadowrealm + "use strict"; test(() => { diff --git a/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-is-error.any.js b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-is-error.any.js new file mode 100644 index 00000000000000..6f3097b222ed1f --- /dev/null +++ b/test/fixtures/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-is-error.any.js @@ -0,0 +1,9 @@ +// META: global=window,dedicatedworker,shadowrealm + +'use strict'; + +test(function() { + // https://github.com/tc39/proposal-is-error/issues/9 + // https://github.com/whatwg/webidl/pull/1421 + assert_true(Error.isError(new DOMException())); +}); diff --git a/test/wpt/status/webidl/ecmascript-binding/es-exceptions.json b/test/wpt/status/webidl/ecmascript-binding/es-exceptions.json index 0967ef424bce67..80bf808b4e4971 100644 --- a/test/wpt/status/webidl/ecmascript-binding/es-exceptions.json +++ b/test/wpt/status/webidl/ecmascript-binding/es-exceptions.json @@ -1 +1,10 @@ -{} +{ + "DOMException-is-error.any.js": { + "fail": { + "note": "https://github.com/nodejs/node/issues/56497", + "expected": [ + "DOMException-is-error" + ] + } + } +}