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: Use internal spec value for param #52

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

jugglinmike
Copy link
Contributor

Using an ECMAScript string value to represent internal state may cause
readers to incorrectly assume that the state is directly observable from
ECMAScript code. Replace with a internal specification value in
accordance with the latest practice in ECMA262 [1].

Modify the values so that they will be distinctive in the context of the
specification in order to facilitate tool-assisted search (e.g. via the
grep command-line utility or via "Ctrl+F" in a web browser).

[1] tc39/ecma262#2566

Using an ECMAScript string value to represent internal state may cause
readers to incorrectly assume that the state is directly observable from
ECMAScript code. Replace with a internal specification value in
accordance with the latest practice in ECMA262 [1].

Modify the values so that they will be distinctive in the context of the
specification in order to facilitate tool-assisted search (e.g. via the
`grep` command-line utility or via "Ctrl+F" in a web browser).

[1] tc39/ecma262#2566
@codecov-commenter
Copy link

Codecov Report

Merging #52 (34042ea) into master (f5404e8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   99.37%   99.37%           
=======================================
  Files           1        1           
  Lines         160      160           
  Branches       50       50           
=======================================
  Hits          159      159           
  Misses          1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5404e8...34042ea. Read the comment docs.

@Jack-Works Jack-Works merged commit 85ba406 into tc39:master Nov 13, 2021
@@ -33,9 +33,9 @@ contributors: "Jack Works"
<h1><dfn>CreateNumericRangeIterator</dfn>(_start_, _end_, _option_, _type_)</h1>
<emu-alg>
1. If Type(_start_) is not _type_, throw a *TypeError* exception.
Copy link
Member

Choose a reason for hiding this comment

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

Actually this step uses _type_ as a runtime ECMAScript value for comparison of typeof _start_ === _type_. Let me fix this.

Copy link
Contributor

Choose a reason for hiding this comment

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

The Type abstract operation is not the same thing as the ECMAScript typeof operator. In particular, it returns the name of a type, not an ES language string (or a spec enum).

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.

5 participants