Skip to content

Editorial: Prepare Annex B for ecmarkup linting - #3932

Merged
ljharb merged 1 commit into
tc39:mainfrom
gibson042:2026-07-lint-annex-b
Aug 21, 2026
Merged

ljharb merged 1 commit into
tc39:mainfrom
gibson042:2026-07-lint-annex-b

Conversation

@gibson042

Copy link
Copy Markdown
Member

@github-actions

Copy link
Copy Markdown

The rendered spec preview for this PR is available as a single page at https://tc39.es/ecma262/pr/3932 and as multiple pages at https://tc39.es/ecma262/pr/3932/multipage .

@michaelficarra michaelficarra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is great!

Comment thread spec.html Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The preamble for ContainsUndefinedBreakTarget needs to mention the _labelSet_ parameter.

Comment thread spec.html
1. Let _year_ be ? ToNumber(_year_).
1. If _time_ is *NaN*, set _time_ to *+0*<sub>𝔽</sub>; else set _time_ to LocalTime(_time_).
1. Let _fullYear_ be MakeFullYear(_year_).
1. Let _fullYear_ be MakeFullYear(? ToNumber(_year_)).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This seems unrelated to the point of the PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's to avoid re-declaring the _year_ variable

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Oh, I guess it's for more general linting.

Comment thread spec.html Outdated
<p>The semantics of <emu-xref href="#sec-compiletocharset"></emu-xref> is extended as follows:</p>

<p>The following two rules replace the corresponding rules of CompileToCharSet.</p>
<p>The following two rules replace the corresponding rules of CompileToCharSet with parameter _regexpRecord_.</p>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"replace ... with ..." is a bit of a garden path.

One alternative would be to use (here and elsewhere) a parenthesized parameter list:

Suggested change
<p>The following two rules replace the corresponding rules of CompileToCharSet with parameter _regexpRecord_.</p>
<p>The following two rules replace the corresponding rules of CompileToCharSet ( _regexpRecord_ ).</p>

Possibly better (again, here and elsewhere) would be to move the parameter list into the section's heading. (Though that doesn't work for "Initializers in ForIn Statement Heads" as currently structured.)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've added two commits, the first one covering this specific consistency and the second one going a little bit farther for ParsePattern.

@gibson042
gibson042 force-pushed the 2026-07-lint-annex-b branch from 1d27476 to 1ba00ca Compare July 29, 2026 02:35

@jmdyck jmdyck left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also, there's the (pre-existing) inconsistency between "semantics is" and "semantics are" in the prose being touched.

Comment thread spec.html Outdated
Comment thread spec.html Outdated
@gibson042 gibson042 added the editor call to be discussed in the next editor call label Jul 31, 2026
@gibson042 gibson042 added ready to merge Editors believe this PR needs no further reviews, and is ready to land. and removed editor call to be discussed in the next editor call labels Aug 12, 2026
Ref tc39/ecmarkup#716

 - Try for more consistency in the Annex B SDO modifications
 - Use INS tags to highlight Annex B ParsePattern modifications like we already do for Regular Expression Early Errors
@ljharb
ljharb force-pushed the 2026-07-lint-annex-b branch from 58845fb to 808af17 Compare August 21, 2026 04:19
@ljharb
ljharb merged commit 808af17 into tc39:main Aug 21, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants