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

Editorial: Fix Completion handling for != and !== #1403

Merged
merged 1 commit into from
May 2, 2019

Conversation

TimothyGu
Copy link
Member

The Abstract Equality Comparison operation may return abrupt completions, but the Strict Equality Comparison operation should always return Boolean values. Indicate that.

@ljharb ljharb requested a review from a team January 13, 2019 07:32
spec.html Outdated Show resolved Hide resolved
@TimothyGu TimothyGu changed the title Editorial: Add missing ReturnIfAbrupt for != Editorial: Fix Completion handling for != and !== Feb 9, 2019
@TimothyGu
Copy link
Member Author

@zenparsing Fixed, thanks.

@ljharb ljharb removed the request for review from bterlson February 28, 2019 19:53
@ljharb ljharb self-assigned this May 1, 2019
@ljharb ljharb merged commit aa8defd into tc39:master May 2, 2019
@jmdyck
Copy link
Collaborator

jmdyck commented May 3, 2019

Wait, how can Abstract Equality Comparison return an abrupt completion?

@ljharb
Copy link
Member

ljharb commented May 3, 2019

If toString or valueOf throws?

@jmdyck
Copy link
Collaborator

jmdyck commented May 3, 2019

Ah. In that case, shouldn't its calls to ToPrimitive be prefixed with '?' ?

@ljharb
Copy link
Member

ljharb commented May 3, 2019

Yes, that’d be a great follow up :-)

@TimothyGu TimothyGu deleted the abstract-neq branch May 20, 2019 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants