Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Align with the base spec in caching "next" methods #119

Merged
merged 2 commits into from
Dec 6, 2017

Conversation

domenic
Copy link
Member

@domenic domenic commented Dec 4, 2017

Closes #116. See tc39/ecma262#1021.

I think I got everything, but I'd certainly appreciate review from anyone available who wants to make sure I didn't miss anything. /cc @Jamesernator who opened #116.

@littledan
Copy link
Member

Cc @kmiller68 @caitp

1. <ins>Set _method_ to ? GetMethod(_obj_, @@asyncIterator).</ins>
1. <ins>If _method_ is *undefined*,
1. <ins>Let _syncMethod_ be ? GetMethod(_obj_, @@iterator).</ins>
1. <ins>Let _syncIteratorRecord_ be ? GetIterator(_obj_, ~normal~, _method_).</ins>

Choose a reason for hiding this comment

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

Should this be GetIterator(_obj_, ~normal~, _syncMethod_) not simply the method which we already know to be undefined?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, good catch, thanks!!

@domenic domenic merged commit bf36f72 into master Dec 6, 2017
@domenic domenic deleted the cache-next-method branch December 6, 2017 23:41
domenic added a commit that referenced this pull request Dec 12, 2017
domenic added a commit that referenced this pull request Dec 12, 2017
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