Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Small spec-text fix #9

Merged
merged 2 commits into from
Jan 30, 2018
Merged

Small spec-text fix #9

merged 2 commits into from
Jan 30, 2018

Conversation

jridgewell
Copy link
Member

No description provided.

README.md Outdated
@@ -47,7 +47,7 @@ When the SetLastArrayItem method is called, the following steps are taken:

Let O be ? ToObject(this value).
Let len be ? ToLength(? Get(O, "length")).
If len is zeo, then
If len is not zero, then
Copy link
Member

Choose a reason for hiding this comment

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

maybe > 0?

Copy link
Member Author

@jridgewell jridgewell Jan 29, 2018

Choose a reason for hiding this comment

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

🤷‍♂️, how does the rest of the spec handle it? Isn't "zero or positive" implied by ToLength?

Copy link
Member

Choose a reason for hiding this comment

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

good point. I think it is, but I think that making implications explicit might still be helpful.

All the other use cases I found were part of a more generic algorithm, like a loop.

Sounds like is 0 is the overarching convention. I'll make a PR to convert the remainder in the spec.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

@keithamus keithamus merged commit 99a56e4 into tc39:master Jan 30, 2018
@keithamus
Copy link
Member

Thanks both 👍 ❤️

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.

3 participants