Skip to content

Simplify handling of unsupported modes in requestSession()#714

Merged
toji merged 1 commit intoimmersive-web:masterfrom
ddorwin:patch-5
Jun 17, 2019
Merged

Simplify handling of unsupported modes in requestSession()#714
toji merged 1 commit intoimmersive-web:masterfrom
ddorwin:patch-5

Conversation

@ddorwin
Copy link
Copy Markdown
Contributor

@ddorwin ddorwin commented Jun 17, 2019

After #685, there is only one failure path at this point, and these steps can be simplified.

This also addresses incorrectly rejecting with null.

After immersive-web#685, there is only one failure path at this point, and these steps can be simplified.

This also addresses incorrectly rejecting with `null`.
Comment thread index.bs
1. Follow the steps for the first matching conditions:
<dl class="switch">
<dt> If the [=XR/XR device=] is <code>null</code>
<dd> [=Reject=] |promise| with <code>null</code>.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to lose this distinction between promises rejected as null and notsupported? I don't think it's important.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's an important distinction either. I can't imagine that a developer is going to do anything useful with that knowledge besides maybe fingerprinting.

@toji
Copy link
Copy Markdown
Member

toji commented Jun 17, 2019

LGTM, thanks!

@toji toji merged commit 56a038a into immersive-web:master Jun 17, 2019
@toji toji added this to the June 2019 milestone Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants