This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Update spec #36
Merged
Merged
Update spec #36
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f17be60
Remove unnecessary [[SetData]] check
gsathya 6f7c6b5
Refactor isDisjointWith
gsathya 657270c
Generate updated spec text
gsathya 741c308
Remove unncessary lookup of the [[Value]] slot
gsathya cba6a49
Generate updated spec
gsathya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
<emu-alg> | ||
1. Let _set_ be the *this* value. | ||
1. If Type(_set_) is not Object, throw a *TypeError* exception. | ||
1. If _set_ does not have a [[SetData]] internal slot, throw a *TypeError* exception. | ||
1. Let _hasCheck_ be ? Get(_set_, "has"). | ||
1. If IsCallable(_hasCheck_) is *false*, throw a *TypeError* exception. | ||
1. Let _iter_ be ? GetIterator(_iterable_). | ||
|
@@ -12,8 +11,7 @@ | |
1. Let _next_ be IteratorStep(_iter_). | ||
1. If _next_ is *false*, return *true*. | ||
1. Let _nextValue_ be ? IteratorValue(_next_). | ||
1. Let _has_ be ? Call(_hasCheck_, _set_, « e »). | ||
1. Let _has_ be ? Call(_hasCheck_, _set_, « _nextValue_.[[Value]] »). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the .[[Value]] needed here? Doesn’t the ? / ReturnIfAbrupt unwrap the completion record for you? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed! I was mostly going off the Set constructor in the spec which was recently fixed too (tc39/ecma262#1310) 😄 Updated all the other methods to do the same too. |
||
1. If _has_ is an abrupt completion, return ? IteratorClose(_iter_, _has_). | ||
1. If _has_ is *false*, return *false*. | ||
|
||
</emu-alg> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not sure if this is a typo, but if so:
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.
Fixed.