-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Breaking] 2018
/2019
: GetIterator
: Add hint
parameter
#67
base: main
Are you sure you want to change the base?
Conversation
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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.
I’m doing this in #68.
Codecov Report
@@ Coverage Diff @@
## master #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
Continue to review full report at Codecov.
|
5cef84b
to
8f49af3
Compare
8f49af3
to
224dd6d
Compare
224dd6d
to
1971333
Compare
hint
parameter to GetIterator
2018+
: 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
hint
parameter is added between theobj
andmethod
parameters.review?(@ljharb)