-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: Expand the use of 'type' syntax #2691
Conversation
spec.html
Outdated
@@ -42881,7 +42896,7 @@ <h1>The <i>IteratorResult</i> Interface</h1> | |||
*"done"* | |||
</td> | |||
<td> | |||
Either *true* or *false*. | |||
either *true* or *false* |
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.
either *true* or *false* | |
a Boolean |
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.
Fine with me.
spec.html
Outdated
@@ -44510,6 +44558,9 @@ <h1>Properties of Generator Instances</h1> | |||
<td> | |||
[[GeneratorBrand]] | |||
</td> | |||
<td> | |||
a brand |
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.
Does this actually restrict this field in any way? Is it more useful to say this than "anything"?
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.
Within the spec, it's a String or ~empty~
, so I'd be inclined to put that in. (Or are we allowing for the possibility of spec-external uses that need a wider type?)
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.
a String or ~empty~
works for me.
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.
LGTM otherwise.
4fc9df9
to
aaae37c
Compare
In tables that 'declare' the required/optional properties of an interface, reword the 'types' (in the 'Value' column) to use the same (or similar) style as the parameters/return of abstract operations.
In tables that 'declare' the internal slots of an object, reword the 'types' (in the 'Type' column) to use the same (or similar) style as the parameters/return of abstract operations.
In tables that 'declare' the internal slots of an object, where there are only 2 columns ("Internal Slot" and "Description"), add a "Type" column.
... in the Iterator Record Fields table.
aaae37c
to
8d9522c
Compare
Similar to PR #2602, which used 'type' syntax when declaring record fields, this PR uses it when declaring:
Also, there's a bonus commit that fixes up the field types of a recently added record.