Skip to content

lib: add primordials.SafeStringIterator - #36526

Closed
aduh95 wants to merge 2 commits into
nodejs:masterfrom
aduh95:safe-string-iterable
Closed

lib: add primordials.SafeStringIterator#36526
aduh95 wants to merge 2 commits into
nodejs:masterfrom
aduh95:safe-string-iterable

Conversation

@aduh95

Copy link
Copy Markdown
Contributor

Allows node internal function to iterate over strings without relying on String.prototype[Symbol.iterator] and %StringIteratorPrototype%.next, which may be mutated from user-land.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added readline Issues and PRs related to the built-in readline module. repl Issues and PRs related to the REPL subsystem. labels Dec 15, 2020
@Lxxyx

Lxxyx commented Dec 15, 2020

Copy link
Copy Markdown
Member

I found some code, seems they should be submitted together with this PR.

for(constcharofstr){

@aduh95
aduh95force-pushed the safe-string-iterable branch from e69e07a to d1ae5c5CompareDecember 15, 2020 14:21
@aduh95

Copy link
Copy Markdown
ContributorAuthor

@Lxxyx Good catch! I added your suggestions.

@PoojaDurgadPoojaDurgad added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 17, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 17, 2020
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

nodejs-github-bot commented Dec 17, 2020

Copy link
Copy Markdown
Collaborator

@ghostghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@aduh95aduh95 added the review wanted PRs that need reviews. label Dec 24, 2020
@aduh95

Copy link
Copy Markdown
ContributorAuthor

@aduh95aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 25, 2020
@github-actionsgithub-actionsBot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 25, 2020
@github-actions

Copy link
Copy Markdown
Contributor

Landed in 40fc395...bd6f230

nodejs-github-bot pushed a commit that referenced this pull request Dec 25, 2020
PR-URL: #36526
Reviewed-By: Rich Trott <rtrott@gmail.com>
@aduh95
aduh95 deleted the safe-string-iterable branch December 25, 2020 18:45
danielleadams pushed a commit that referenced this pull request Jan 12, 2021
PR-URL: #36526
Reviewed-By: Rich Trott <rtrott@gmail.com>
@danielleadamsdanielleadams mentioned this pull request Jan 12, 2021
targos pushed a commit that referenced this pull request May 25, 2021
PR-URL: #36526
Reviewed-By: Rich Trott <rtrott@gmail.com>
targos pushed a commit that referenced this pull request Jun 5, 2021
PR-URL: #36526
Reviewed-By: Rich Trott <rtrott@gmail.com>
@targostargos mentioned this pull request Jun 6, 2021
targos pushed a commit that referenced this pull request Jun 11, 2021
PR-URL: #36526
Reviewed-By: Rich Trott <rtrott@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

readlineIssues and PRs related to the built-in readline module.replIssues and PRs related to the REPL subsystem.review wantedPRs that need reviews.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@aduh95@Lxxyx@nodejs-github-bot@Trott@PoojaDurgad