-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should [SameObject] be allowed with FrozenArray<T>? #1402
Comments
When we worked on Orientation Sensor, the idea was exactly that we would get the same object for all calls, and I believe we had to move it to use the FrozenArray for that reason. |
[SameObject] is just documentation in the current Web IDL spec so it doesn't really matter. You have to make sure you write your getter steps correctly to specify the actual desired behavior. |
I think the problem is that |
Right, we need to replace I'd also double check you really want |
My uninformed guess is that at least some of the specs use it as a way to make an attribute return some sort of array, as |
What is the issue with the Web IDL Standard?
The spec currently allows
[SameObject]
to be used with interface types andobject
. In w3c/compute-pressure#269 we were wondering if the restriction onFrozenArray<T>
makes sense or not.The text was updated successfully, but these errors were encountered: