diff --git a/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html b/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html index 39707e83cb03..004b3ca6bf39 100644 --- a/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html +++ b/testing/web-platform/tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html @@ -80,7 +80,7 @@ testCases = [ // cause InvalidStateError. // // Note: https://bugs.chromium.org/p/chromium/issues/detail?id=799025 - assert_throws(e, function() { throw e }, new DOMException('', 'InvalidStateError')); + assert_throws("InvalidStateError", () => { throw e }); }); } },