Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console: use more primordials #35734

Open
wants to merge 3 commits into
base: master
from

Conversation

@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Oct 21, 2020

Backport requested because optional chaining is not available on Node.js 12.

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

This comment has been hidden.

@aduh95
Copy link
Contributor Author

@aduh95 aduh95 commented Oct 21, 2020

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

@targos
Copy link
Member

@targos targos commented Oct 21, 2020

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 was marked as off-topic.

@aduh95
Copy link
Contributor Author

@aduh95 aduh95 commented Oct 21, 2020

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 hidden.

@aduh95 aduh95 added the request-ci label Oct 21, 2020
@github-actions github-actions bot removed the request-ci label Oct 21, 2020
@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.