Skip to content

console: use more primordials - #35734

Merged
aduh95 merged 1 commit into
nodejs:masterfrom
aduh95:console-refactor-primordials
Nov 5, 2020
Merged

console: use more primordials#35734
aduh95 merged 1 commit into
nodejs:masterfrom
aduh95:console-refactor-primordials

Conversation

@aduh95

@aduh95aduh95 commented Oct 21, 2020

Copy link
Copy Markdown
Contributor

Backport requested because optional chaining is not available on Node.js 12. No need for optional chaining after all 😅

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

@nodejs-github-botnodejs-github-bot added the console Issues and PRs related to the console subsystem. label Oct 21, 2020
@aduh95aduh95 added backport-requested-v12.x request-ci Add this label to start a Jenkins CI on a PR. labels Oct 21, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 21, 2020
@nodejs-github-bot

This comment has been minimized.

@aduh95

Copy link
Copy Markdown
ContributorAuthor

Why am I getting TypeError: StringPrototypeReplaceAll is not a function? 🤔

@targos

Copy link
Copy Markdown
Member

My guess is that the method is not available to primordials because it can be disabled in V8 with node --no-harmony-string-replaceall.

@codecov-io

This comment has been minimized.

@aduh95

Copy link
Copy Markdown
ContributorAuthor

My guess is that the method is not available to primordials because it can be disabled in V8 with node --no-harmony-string-replaceall.

Interesting. Well I guess we'll have to refrain from using it in node core for the time being then…

@nodejs-github-bot

This comment has been minimized.

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

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@aduh95aduh95 added request-ci Add this label to start a Jenkins CI on a PR. and removed backport-requested-v12.x labels Oct 28, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 28, 2020
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@aduh95aduh95 added the review wanted PRs that need reviews. label Oct 28, 2020
@aduh95
aduh95 requested a review from targosOctober 28, 2020 15:34
@aduh95

Copy link
Copy Markdown
ContributorAuthor

@nodejs/console Can you review this please?

@TrottTrott 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.

LGTM but needs a rebase

@aduh95
aduh95force-pushed the console-refactor-primordials branch from 446aa98 to f2c9f81CompareOctober 31, 2020 18:57
@aduh95aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 31, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 1, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@aduh95aduh95 mentioned this pull request Nov 1, 2020
2 tasks
PR-URL: nodejs#35734
Reviewed-By: Rich Trott <rtrott@gmail.com>
@aduh95
aduh95force-pushed the console-refactor-primordials branch from f2c9f81 to 1f6ca18CompareNovember 5, 2020 22:12
@aduh95

Copy link
Copy Markdown
ContributorAuthor

Landed in 1f6ca18

@aduh95
aduh95 merged commit 1f6ca18 into nodejs:masterNov 5, 2020
@aduh95
aduh95 deleted the console-refactor-primordials branch November 5, 2020 22:13
danielleadams pushed a commit that referenced this pull request Nov 9, 2020
PR-URL: #35734
Reviewed-By: Rich Trott <rtrott@gmail.com>
@danielleadamsdanielleadams mentioned this pull request Nov 9, 2020
BethGriggs pushed a commit that referenced this pull request Dec 9, 2020
PR-URL: #35734
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this pull request Dec 10, 2020
PR-URL: #35734
Reviewed-By: Rich Trott <rtrott@gmail.com>
@BethGriggsBethGriggs mentioned this pull request Dec 10, 2020
BethGriggs pushed a commit that referenced this pull request Dec 15, 2020
PR-URL: #35734
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

consoleIssues and PRs related to the console subsystem.review wantedPRs that need reviews.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@aduh95@nodejs-github-bot@targos@codecov-io@Trott