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: Make asserts in Else clauses explicit #1559

Merged
merged 1 commit into from Jun 2, 2019

Conversation

shvaikalesh
Copy link
Member

Closes #1419.

@ljharb ljharb requested review from zenparsing and a team May 29, 2019 19:58
spec.html Show resolved Hide resolved
spec.html Show resolved Hide resolved
spec.html Show resolved Hide resolved
spec.html Show resolved Hide resolved
spec.html Outdated Show resolved Hide resolved
spec.html Outdated Show resolved Hide resolved
spec.html Show resolved Hide resolved
@ljharb ljharb self-assigned this May 29, 2019
Copy link
Collaborator

@jmdyck jmdyck left a comment

Choose a reason for hiding this comment

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

I actually kind of liked the Else <assertion> syntax, but I'm fine with seeing it go.

spec.html Show resolved Hide resolved
@ljharb ljharb merged commit f8ea1ac into tc39:master Jun 2, 2019
jmdyck added a commit to jmdyck/ecma262 that referenced this pull request Sep 28, 2019
ljharb pushed a commit to jmdyck/ecma262 that referenced this pull request Sep 28, 2019
 - Let -> Set
 - Eliminate otherwise-assertions (per tc39#1559)
 - Change '?' to '!', because ::subtract can't return an abrupt completion.
 - Fix bug: '_v_' should be '_value_'

 - Fix bug: `_arrayTypeName_` not defined
... in Atomics.{store,wait,notify}.

(In Atomics.store, it does get defined in step 5, but needs to be defined
before the reference in step 3.)

(In Atomics.wait, the undefined reference is in step 11,
but by defining it earlier, it can also be used in the current step 3.)

(In Atomics.notify, the undefined reference is in step 7.)
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.

In algorithms, change confusing ”Else foo” into ”Else, Assert: foo”
5 participants