Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgetInputSources API isn't spec-compliant #24395
Closed
Labels
Comments
|
This breaks various three.js demos. |
|
It's not a FrozenArray, that was the change we made in the spec, it's an iterable. We support this I think. |
|
Indeed! |
bors-servo
added a commit
that referenced
this issue
Oct 8, 2019
Support new way of doing input source arrays Fixes #24395 r? @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24397) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Oct 8, 2019
Support new way of doing input source arrays Fixes #24395 r? @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24397) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Oct 8, 2019
Support new way of doing input source arrays Fixes #24395 r? @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24397) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The WebXR spec calls for XRSession to have a inputSources attribute that returns a FrozenArray. We have a
getInputSourcesmethod that returns a sequence instead, because of #10072. I think the best way to deal with this is make our attribute return ananyWebIDL value, store a cached JSVal that is a frozen JS array.