Closed takahirox closed 5 years ago
The Travis CI build fails but it fails with the same error even without this PR. I don't think the error is from this PR.
Great find @takahirox, thanks! The tests have not yet been updated since the merging of the webxr-2019 branch
This PR lets the return values from
XR.supportsSession()
follow the specification.Currently it returns
Promise.resolve(null)
when succeeded and returnsPromise.reject(null)
when failed. But the specification mentions that the return type isPromise<void>
when succeeded andreject promise with a "NotSupportedError" DOMException
when failed.