-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fix return type of CredentialsContainer.store #215
Conversation
Would be really nice to get this merged! I was a bit miffed with my tests until I thought to come here and see if anyone had the same issue. |
@npm1 are you able to take a look at this? Or direct the correct person to review it? |
FWIW the IDL in Chromium says |
Yeah that along with the typescript types being wrong is what led me here. |
Oh I am so sorry I did not take a look earlier, for some reason this PR never sent me a notification. This issue is related to #98 and we might be able to close both with the same PR. I agree we should update the spec to match implementation and have the promise return undefined. Could you also update the references to the return value? Step 7.1 of Store a Credential should say "Resolve p with undefined" instead. There is no point resolving with I think we can also do away with Another interesting bit is that the default implementation for [[store]] says to return undefined, but in practice we throw instead. Throwing IMO is better as a signal that the developer is doing something that is not supported, I filed #218 to track this. (It looks like the build is broken again too -- don't worry about spurious errors, for now we can force-push the PR and fix them later) |
No worries! I'll make those changes tomorrow. |
47dfdd8
to
95b7e79
Compare
@nsatragno Those changes should be done now |
nsatragno marked as non substantive for IPR from ash-nazg. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, thanks!
Fixes #214 #98
Preview | Diff