FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lib: revokeObjectURL throws error on empty args by DylanTet · Pull Request #50433 · nodejs/node · GitHub

/ node Public

lib: revokeObjectURL throws error on empty args - #50433

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
DylanTet:local-branch
Nov 30, 2023
Merged

lib: revokeObjectURL throws error on empty args#50433
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
DylanTet:local-branch

Conversation

Copy link
Copy Markdown
Contributor

Fixes: #50432

Added a check to see if url wasnt included as an argument which will then throw an error.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/url

nodejs-github-bot added needs-ci PRs that need a full CI run. whatwg-url Issues and PRs related to the WHATWG URL implementation. labels Oct 27, 2023

anonrig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you add a test as well?

Comment thread lib/internal/url.js Outdated
Comment thread lib/internal/url.js Outdated

Copy link
Copy Markdown
Contributor Author

@anonrig yessir ill knock that out

Copy link
Copy Markdown
Contributor Author

@anonrig just added the test for the function

jasnell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM with some linting fixes

deokjinkim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

First line of commit message has to be started with imperative verb. For example, url: check argument length of revokeObjectURL. Could you please modify first line of commit message?

Refs: https://github.com/nodejs/node/blob/main/doc/contributing/pull-requests.md#commit-message-guidelines

Comment thread lib/internal/url.js Outdated
DylanTet changed the title lib: revokeObjectURL throws error if arg length is 0 in url.js url: check argument length of revokeObjectURL Oct 29, 2023

H4ad commented Oct 29, 2023

Copy link
Copy Markdown
Member

@DylanTet can you remove the unnecessary commits? The PR was polluted because of them, but in general, it looks great.

Copy link
Copy Markdown
Contributor Author

@H4ad just removed the other commits, sorry about that, I am still getting better at git :)

H4ad added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Oct 29, 2023

H4ad commented Oct 29, 2023

Copy link
Copy Markdown
Member

@DylanTet Can you rename the message of the first commit?

https://github.com/nodejs/node/actions/runs/6683924004/job/18160770160?pr=50433

It should be less than 50 characters, maybe something like: lib: revokeObjectURL throws error on empty args.

You should also fix the linting errors: https://github.com/nodejs/node/actions/runs/6683924005/job/18160770724?pr=50433

You can test locally using make lint-js or make lint-md.

DylanTet changed the title url: check argument length of revokeObjectURL lib: revokeObjectURL throws error on empty args Oct 30, 2023

lpinca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM with lint errors and commit message title fixed.

Copy link
Copy Markdown
Contributor

Hey @DylanTet, Are you working on this?

Copy link
Copy Markdown
Contributor Author

@shubham9411 i am, last I remember I updated the PR but it's still waiting review

Copy link
Copy Markdown
Contributor

@DylanTet, I think you just need to rename the first commit message as H4ad suggested above.

Copy link
Copy Markdown
Contributor Author

@shubham9411 done :)

H4ad commented Nov 26, 2023
edited
Loading

Copy link
Copy Markdown
Member

@DylanTet the first message is still failing the CI, did you forgot to push?

deokjinkim added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Nov 28, 2023
Added a check to see if url wasn't included as an argument
which will then throw an error.

Fixes: nodejs#50432
deokjinkim added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 28, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 28, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

H4ad added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 30, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 30, 2023
nodejs-github-bot merged commit 2f40652 into nodejs:main Nov 30, 2023

Copy link
Copy Markdown
Collaborator

Landed in 2f40652

targos pushed a commit that referenced this pull request Dec 4, 2023
Added a check to see if url wasn't included as an argument
which will then throw an error.

Fixes: #50432
PR-URL: #50433
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
targos mentioned this pull request Dec 4, 2023
richardlau pushed a commit that referenced this pull request Mar 25, 2024
Added a check to see if url wasn't included as an argument
which will then throw an error.

Fixes: #50432
PR-URL: #50433
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
richardlau mentioned this pull request Mar 25, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. whatwg-url Issues and PRs related to the WHATWG URL implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URL: URL.revokeObjectURL accepts no parameters when 1 is required

9 participants


Back | FazBrowse Home | New Git URL