1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17: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

@ -69,6 +69,7 @@ class PrimitiveString;
class ScopeNode;
class Shape;
class Statement;
class Uint8ClampedArray;
class Value;
enum class DeclarationKind;