Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

lib: fix sequence argument handling in Blob constructor#62179

Open
Ms2ger wants to merge 1 commit intonodejs:mainfrom
Ms2ger:blob-sequence
Open

lib: fix sequence argument handling in Blob constructor#62179
Ms2ger wants to merge 1 commit intonodejs:mainfrom
Ms2ger:blob-sequence

Conversation

Copy link
Contributor

Ms2ger commented Mar 10, 2026

This uses the existing WebIDL infrastructure to handle the iteration over the argument correctly according to the specification.

Note that we can't avoid looping over the input twice: we only know the value of the 'endings' option after converting the blob parts into an array.

Copy link
Collaborator

nodejs-github-bot commented Mar 10, 2026

Review requested:

  • @nodejs/web-standards

nodejs-github-bot added the needs-ci PRs that need a full CI run. label Mar 10, 2026
Ms2ger force-pushed the blob-sequence branch from daf1435 to 43be7a6 Compare March 10, 2026 13:20
This uses the existing WebIDL infrastructure to handle the iteration
over the argument correctly according to the specification.

Note that we can't avoid looping over the input twice: we only know the
value of the 'endings' option after converting the blob parts into an
array.
Ms2ger force-pushed the blob-sequence branch from 43be7a6 to d4ac3a5 Compare March 10, 2026 13:41
MattiasBuelens approved these changes Mar 10, 2026
Copy link

codecov bot commented Mar 10, 2026 *
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests.
Project coverage is 89.65%. Comparing base (f82525e) to head (d4ac3a5).
Report is 12 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@
## main #62179 +/- ##
=======================================
Coverage 89.65% 89.65%
=======================================
Files 676 676
Lines 206541 206550 +9
Branches 39541 39552 +11
=======================================
+ Hits 185171 185182 +11
- Misses 13472 13484 +12
+ Partials 7898 7884 -14
Files with missing lines Coverage D
lib/internal/blob.js 100.00% <100.00%> (o)

... and 32 files with indirect coverage changes

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.

MattiasBuelens added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 10, 2026
github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 10, 2026
Copy link
Collaborator

nodejs-github-bot commented Mar 10, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

MattiasBuelens MattiasBuelens approved these changes

Assignees

No one assigned

Labels

needs-ci PRs that need a full CI run.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants