immersive-web / hit-test

Home Page:https://immersive-web.github.io/hit-test/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clarify promise resolution possibilities

jsantell opened this issue · comments

In the current Chrome implementation, upon an unsuccessful hit, XRSession.prototype.requestHitTest() either returns a promise resolving to an empty array, or, due to an issue, may reject the promise.

We should clarify in the spec what happens when no hits are found (I assume empty arrays), and what can cause the promise to reject (I imagine if the platform doesn't support hit tests).