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

fix: 2.3.3.3.4.1: be specific about what to ignore #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mightyiam
Copy link

No description provided.

@mightyiam
Copy link
Author

This would have prevented my confusion in #264 .

@benjamingr
Copy link

benjamingr commented Apr 17, 2018

I think this change is unnecessary.

I'm also generally -1 on making any further changes to the aplus spec at this point except if a serious vulnerability is involved.

The aplus spec was/is an important cornerstone in unifying promise usage in the web - we should focus on native promises and the ECMAScript spec at this point.

Lots of new specs could use love and parts of the web platform - I suggest we focus there.

@mightyiam
Copy link
Author

@benjamingr unnecessary, certainly. Possibly slightly helpful, I think so. Harmful in any way, certainly not. Easy math, don't you agree?

@@ -93,7 +93,7 @@ To run `[[Resolve]](promise, x)`, perform the following steps:
1. If/when `rejectPromise` is called with a reason `r`, reject `promise` with `r`.
1. If both `resolvePromise` and `rejectPromise` are called, or multiple calls to the same argument are made, the first call takes precedence, and any further calls are ignored.
1. If calling `then` throws an exception `e`,
1. If `resolvePromise` or `rejectPromise` have been called, ignore it.
1. If `resolvePromise` or `rejectPromise` have been called, ignore the exception `e`.
Copy link
Author

Choose a reason for hiding this comment

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

When I read "it", I wrongly thought "it" refers to either resolvePromise or rejectPromise. This change should prevent the next possible confusion.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I think it's perfectly reasonable to change "it" to "e" here.

mightyiam added a commit to mightyiam/promises-spec that referenced this pull request Apr 23, 2018
When I read "it", I wrongly thought "it" refers to either
`resolvePromise` or `rejectPromise`.

This change should prevent the next possible confusion.

Closes promises-aplus#265
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.

None yet

3 participants