[Breaking] 2018/2019: GetIterator: Add hint parameter#67
[Breaking] 2018/2019: GetIterator: Add hint parameter#67ExE-Boss wants to merge 1 commit intoljharb:mainfrom
2018/2019: GetIterator: Add hint parameter#67Conversation
BREAKING CHANGE: This is backwards incompatible, as the `hint` parameter is added between the `obj` and `method` parameters.
es2018.js
Outdated
| // TODO: This should return an IteratorRecord | ||
| /* | ||
| var nextMethod = this.GetV(iterator, 'next'); | ||
| return { | ||
| '[[Iterator]]': iterator, | ||
| '[[NextMethod]]': nextMethod, | ||
| '[[Done]]': false | ||
| }; | ||
| */ |
There was a problem hiding this comment.
This is also a breaking change, which should probably be made as part of the v2.0 release, which should be where this gets first released.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #67 +/- ##
==========================================
- Coverage 90.82% 90.29% -0.53%
==========================================
Files 828 828
Lines 11541 11567 +26
Branches 2652 2662 +10
==========================================
- Hits 10482 10445 -37
- Misses 1059 1122 +63 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5cef84b to
8f49af3
Compare
8f49af3 to
224dd6d
Compare
224dd6d to
1971333
Compare
hint parameter to GetIterator2018+: GetIterator: Add hint parameter
|
@ljharb I’ve rebased this, but some builds didn’t run due to GitHub rate‑limiting Travis CI. |
1971333 to
0e54952
Compare
See #67 Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>
0e54952 to
b967be4
Compare
|
I've pulled these changes into ES2020 in ddbba60, and rebased this PR, so now it's only breaking for ES2018 and ES2019 - and ES2020+ will have the proper signature, and adding async iterator support will be semver-minor. |
2018+: GetIterator: Add hint parameter2018/2019: GetIterator: Add hint parameter
Addresses part of #66.
BREAKING CHANGE: This is backwards incompatible, as the
hintparameter is added between theobjandmethodparameters.review?(@ljharb)