1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:57:35 +00:00

LibJS: Add Uint8ClampedArray :^)

This is a special kind of byte array that clamps its values to 0...255
It will be used for HTML ImageData objects.

I made Object::put_by_index() and get_by_index() virtual for this.
We'll probably need to make non-numeric property name lookups virtual
as well, but this solves my current problem well enough.
This commit is contained in:
Andreas Kling 2020-04-21 23:46:51 +02:00
parent 0fa7cf70b5
commit 627fd6374b
5 changed files with 144 additions and 2 deletions

View file

@ -43,6 +43,7 @@ OBJS = \
Runtime/StringConstructor.o \
Runtime/StringObject.o \
Runtime/StringPrototype.o \
Runtime/Uint8ClampedArray.o \
Runtime/Value.o \
Token.o