这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@padenot
Copy link
Member

@padenot padenot commented Jul 6, 2020

Essentially a conversion to bikeshed of @domenic's comment and then used everywhere we create a promise.


Preview | Diff

@padenot padenot requested a review from rtoy July 6, 2020 16:52
@hoch hoch self-requested a review July 6, 2020 16:56
@hoch
Copy link
Member

hoch commented Jul 6, 2020

I'd like to review this.

Copy link
Member

@rtoy rtoy left a comment

Choose a reason for hiding this comment

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

lgtm for the change.

But not sure what's up with bikeshed. In PR #2211, I've updated the expected results to match what I get locally, but Travis doesn't like it.

Copy link
Member

@hoch hoch left a comment

Choose a reason for hiding this comment

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

LGTM % 2 questions

thread:</span>

1. Let <var>promise</var> be a new Promise.
1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=fully active=] then return [=a promise rejected with=] "{{InvalidStateError}}" {{DOMException}}.
Copy link
Member

Choose a reason for hiding this comment

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

What's [=this=] here? I am assuming it is the parent BaseAudioContext, but the link "this" leads to an abstract description of this in WebIDL. I hope there's a better way to express the association.

Copy link
Member

Choose a reason for hiding this comment

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

When a Document is not fully active, where does a "rejected promise" go? Or is this some sort of formality defined somewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

The [=something=] notation refers to exported definitions that are globally exposed. I would have expected some sort of name-spacing per spec, but I don't know how to do it and haven't found anything.

When describing a method, this is the object on which the method has been called, I think it's clear enough.

When a document is not fully active, the promise is returned rejected, and it goes wherever the author of the code wants it to go.

@padenot
Copy link
Member Author

padenot commented Jul 7, 2020

lgtm for the change.

But not sure what's up with bikeshed. In PR #2211, I've updated the expected results to match what I get locally, but Travis doesn't like it.

Probably a change in format for the errors. I've updated those based on bikeshed tip yesterday evening.

@hoch
Copy link
Member

hoch commented Jul 7, 2020

Thanks for the explanation. Still LGTM.

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.

4 participants