LibWeb: Reject Promise in createImageBitmap for Not Implemented Types

If we don't reject the Promise, it lasts forever,
so rejecting non implemented Promises is essential,
to not timeout in e.g. WPT tests
This commit is contained in:
Totto16 2024-10-09 16:11:51 +02:00 committed by Sam Atkins
commit aab5a9e944
Notes: github-actions[bot] 2024-10-09 16:47:24 +00:00
3 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,7 @@
Blob [Success]: [object ImageBitmap]
ImageData [ Error ]: Error: Not Implemented: createImageBitmap() for non-blob types
HTMLImageElement [ Error ]: TypeError: No union types matched
SVGImageElement [ Error ]: TypeError: No union types matched
HTMLCanvasElement [ Error ]: TypeError: No union types matched
ImageBitmap [ Error ]: TypeError: No union types matched
HTMLVideoElement [ Error ]: TypeError: No union types matched