WebIDL Fix ImageData constructor to take a Uint8ClampedArray instead of js_object (#31398)

<!-- Please describe your changes on the following line: -->

Fix ImageData constructor to take a Uint8ClampedArray instead of
js_object

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #31320

<!-- Either: -->
- [x] These changes do not require tests because there is not behavior
change.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->

<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->

---------

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
Taym Haddadi 2025-05-09 13:05:56 +02:00 committed by GitHub
parent 53be79a5b5
commit e5347eceac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 61 deletions

View file

@ -1,3 +0,0 @@
[2d.imageData.object.ctor.basics.html]
[Testing different type of ImageData constructor]
expected: FAIL