Skip to content

[Breaking] 2018/2019: GetIterator: Add hint parameter#67

Draft
ExE-Boss wants to merge 1 commit intoljharb:mainfrom
ExE-Boss:feat/es2018/get-iterator
Draft

[Breaking] 2018/2019: GetIterator: Add hint parameter#67
ExE-Boss wants to merge 1 commit intoljharb:mainfrom
ExE-Boss:feat/es2018/get-iterator

Conversation

@ExE-Boss
Copy link
Copy Markdown
Contributor

@ExE-Boss ExE-Boss commented Nov 4, 2019

Addresses part of #66.

BREAKING CHANGE: This is backwards incompatible, as the hint parameter is added between the obj and method parameters.


review?(@ljharb)

BREAKING CHANGE: This is backwards incompatible, as the `hint` parameter is added between the `obj` and `method` parameters.
es2018.js Outdated
Comment on lines +192 to +200
// TODO: This should return an IteratorRecord
/*
var nextMethod = this.GetV(iterator, 'next');
return {
'[[Iterator]]': iterator,
'[[NextMethod]]': nextMethod,
'[[Done]]': false
};
*/
Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor Author

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
Copy link
Copy Markdown

codecov bot commented Nov 7, 2019

Codecov Report

❌ Patch coverage is 77.14286% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.29%. Comparing base (ddbba60) to head (b967be4).
⚠️ Report is 584 commits behind head on main.

Files with missing lines Patch % Lines
2018/GetIterator.js 75.00% 4 Missing ⚠️
2019/GetIterator.js 75.00% 4 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ExE-Boss ExE-Boss mentioned this pull request Nov 7, 2019
3 tasks
@ExE-Boss ExE-Boss force-pushed the feat/es2018/get-iterator branch from 5cef84b to 8f49af3 Compare November 17, 2019 06:39
@ljharb ljharb force-pushed the feat/es2018/get-iterator branch from 8f49af3 to 224dd6d Compare December 11, 2019 07:41
@ExE-Boss ExE-Boss force-pushed the feat/es2018/get-iterator branch from 224dd6d to 1971333 Compare May 13, 2020 10:52
@ExE-Boss ExE-Boss changed the title feat(ES2018): Add hint parameter to GetIterator [Breaking] 2018+: GetIterator: Add hint parameter May 16, 2020
@ExE-Boss
Copy link
Copy Markdown
Contributor Author

@ljharb I’ve rebased this, but some builds didn’t run due to GitHub rate‑limiting Travis CI.

@ExE-Boss ExE-Boss force-pushed the feat/es2018/get-iterator branch from 1971333 to 0e54952 Compare May 18, 2020 09:28
ljharb added a commit that referenced this pull request Oct 1, 2020
See #67

Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
@ljharb ljharb force-pushed the feat/es2018/get-iterator branch from 0e54952 to b967be4 Compare October 1, 2020 03:00
@ljharb
Copy link
Copy Markdown
Owner

ljharb commented Oct 1, 2020

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.

@ljharb ljharb changed the title [Breaking] 2018+: GetIterator: Add hint parameter [Breaking] 2018/2019: GetIterator: Add hint parameter Oct 1, 2020
@ljharb ljharb marked this pull request as draft May 28, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants