w3c / compute-pressure

A web API proposal that provides information about available compute capacity
https://www.w3.org/TR/compute-pressure/
Other
69 stars 10 forks source link

Make PressureRecord an interface #135

Closed kenchris closed 2 years ago

kenchris commented 2 years ago

This PR fixes a set of issues by moving PressureRecord into an interface instead of a dictionary.

Internal slots are now defined for all backing values so that spec deals with these internal types and now the final types exposed to JavaScript, e.g. factors is internally an ordered set, but gets exposed to JavaScript like an array.

Fixes #136 Fixes #132 Fixes #131


Preview | Diff

kenchris commented 2 years ago

OK, I tried to do this, please have a careful look :-)

kenchris commented 2 years ago

Yes. Let me fix all this tomorrow