Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Editorial: annotate modification to params #65

Merged
merged 2 commits into from
Jul 19, 2021

Conversation

jugglinmike
Copy link
Contributor

Explicitly specify the value that should be used when optional
parameters are not provided. Update some function signatures to
highlight the modifications included in this proposal. Additionally,
update the signature of the SharedArrayBuffer constructor to reflect a
recent change in ECMA262 [1].

[1] tc39/ecma262#2393

Explicitly specify the value that should be used when optional
parameters are not provided. Update some function signatures to
highlight the modifications included in this proposal. Additionally,
update the signature of the SharedArrayBuffer constructor to reflect a
recent change in ECMA262 [1].

[1] tc39/ecma262#2393
Copy link
Collaborator

@syg syg left a comment

Choose a reason for hiding this comment

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

lgtm modulo comment

spec.html Outdated
<p>When the `ArrayBuffer` function is called with argument _length_<ins> and optional argument _options_</ins>, the following steps are taken:</p>
<emu-alg>
1. If NewTarget is *undefined*, throw a *TypeError* exception.
1. Let _byteLength_ be ? ToIndex(_length_).
1. <ins>If _options_ is not present, set _options_ to *undefined*.</ins>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this step, or the similar one in SAB, is necessary. Not present optional parameters are already undefined.

@jugglinmike jugglinmike changed the title Editorial: specify behavior for omitted opt params Editorial: annotate modification to params Jul 16, 2021
@jugglinmike
Copy link
Contributor Author

Right you are. I got confused by the spec's use of this pattern for abstract operations.

I've updated the pull request's name, and I can do the same to the commit title by force-pushing to this branch at your request (though you may need to do that when merging from the github.com UI).

@syg syg merged commit f3b7626 into tc39:master Jul 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants