Skip to content

Conversation

XadillaX
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot added buffer Issues and PRs related to the buffer subsystem. needs-ci PRs that need a full CI run. labels Jul 19, 2022
Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

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

I don't think we need to remove the equal signs from the string, couldn't we simply count them and throw if there's more than two or if a different char after the first equal sign?

// ASCII whitespace char codes.
nonAsciiWhitespaceCharCount++;

if (index === kEqualSignIndex) {
Copy link
Contributor

@aduh95 aduh95 Jul 30, 2022

Choose a reason for hiding this comment

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

If you put this check here, you don't need to repeat the throw lazyDOMException part, right?

Suggested change
if (index === kEqualSignIndex) {
if (index === kEqualSignIndex && equalCharCount !== 2) {

Other than that, LGTM

@aduh95 aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 30, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 30, 2022
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@XadillaX
Copy link
Contributor Author

XadillaX commented Oct 9, 2022

Landed in 3a7fcdc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buffer Issues and PRs related to the buffer subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants