Skip to content
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

Permit [SameObject] for nullable types? #559

Open
jcjones opened this issue May 23, 2018 · 2 comments
Open

Permit [SameObject] for nullable types? #559

jcjones opened this issue May 23, 2018 · 2 comments

Comments

@jcjones
Copy link

jcjones commented May 23, 2018

WebAuthn made a previously-[SameObject] attribute userHandle nullable (in w3c/webauthn@3b2a1d1). @smaug---- points out that "SameObject applies to interface and objects only, not nullable types" but since this sort of makes sense, perhaps WebIDL should change to permit the behavior.

@annevk
Copy link
Member

annevk commented May 24, 2018

It either always returns null or always returns an object? In any event, given that we want to replace [SameObject] in #212 I'm not sure we should extend it now.

@jcjones
Copy link
Author

jcjones commented May 24, 2018

Yeah, that's right. It's always either null, or a cached object, basically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants