diff --git a/webidl/ecmascript-binding/es-exceptions/DOMException-is-error.any.js b/webidl/ecmascript-binding/es-exceptions/DOMException-is-error.any.js new file mode 100644 index 00000000000000..6f3097b222ed1f --- /dev/null +++ b/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())); +});