Skip to content

Conversation

@daeyeon
Copy link
Member

Fixes: #47683

This fixes creating an ArrayBuffer from a Blob sliced from a Blob created with fs.openAsBlob.

Signed-off-by: Daeyeon Jeong [email protected]

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Apr 24, 2023
@daeyeondaeyeon marked this pull request as draft April 24, 2023 05:54
@daeyeondaeyeonforce-pushed the main.fix/47683-230424.Mon.d73a branch from 2b97826 to babd5a0CompareApril 24, 2023 06:03
@daeyeondaeyeon marked this pull request as ready for review April 24, 2023 06:15
@ikreymer
Copy link

Thanks! Assume the fix should also apply to .stream() - the issue manifested in both .arrayBuffer() and .stream() but reported for arrayBuffer() as that was simpler repro, but perhaps worth adding a test for stream as well?

@daeyeondaeyeonforce-pushed the main.fix/47683-230424.Mon.d73a branch from babd5a0 to 6e40de0CompareApril 25, 2023 03:00
@daeyeon
Copy link
MemberAuthor

@ikreymer That would be better. Updated the test for stream also, PTAL.

@ikreymer
Copy link

@ikreymer That would be better. Updated the test for stream also, PTAL.

Yes, that looks good - thanks!

@daeyeondaeyeon added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 26, 2023
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 26, 2023
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

@jasnell
Copy link
Member

Landed in af9b48a

@jasnelljasnell closed this May 5, 2023
@daeyeondaeyeon deleted the main.fix/47683-230424.Mon.d73a branch May 5, 2023 02:18
targos pushed a commit that referenced this pull request May 12, 2023
@targostargos mentioned this pull request May 15, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

slice on blob created with fs.openAsBlob results in incorrect length (end + start instead of end - start?)

5 participants

@daeyeon@ikreymer@nodejs-github-bot@jasnell@danielleadams