Skip to content

Conversation

@Sebastien-Ahkrin
Copy link
Contributor

Hello,
Now, in this PR I have added Error in the primordials eslint
so have created a line in "/lib/.eslintrc.yaml".

rules: no-restricted-globals: - name: Errormessage: "Use `const{Error } = primordials;` instead of the global."

And just import Error :).

const{// [...] Error,}=primordials;

I hope this new PR will help you :x

@nodejs-github-botnodejs-github-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Jan 2, 2020
@Sebastien-Ahkrin
Copy link
ContributorAuthor

Refs: #30697

@BridgeAR
Copy link
Member

Does this have any impact on instanceof checks?

@targos
Copy link
Member

Does this have any impact on instanceof checks?

No, the object is the same as the global one.

@nodejs-github-bot
Copy link
Collaborator

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 2, 2020
@Sebastien-Ahkrin
Copy link
ContributorAuthor

This PR is errored with the JS test suite in the "parallel/test-tick-processor-arguments" test ...
But i don't know why ...

i can reproduce the error now in my computer .
It's a "Unexpected end of JSON input" 😢

i will investigate 😄

https://travis-ci.com/nodejs/node/jobs/271895965

@Sebastien-Ahkrin
Copy link
ContributorAuthor

This PR is errored with the JS test suite in the "parallel/test-tick-processor-arguments" test ...
But i don't know why ...

i can reproduce the error now in my computer .
It's a "Unexpected end of JSON input" 😢

i will investigate 😄

https://travis-ci.com/nodejs/node/jobs/271895965

@targos found the error 😄 so its only because the file v8-prof-polyfill can't contain any primordials.
Si i have added this line:

/* eslint-disable no-restricted-globals */

I hope this will help you :)

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

Trott pushed a commit to Trott/io.js that referenced this pull request Jan 4, 2020
PR-URL: nodejs#31163 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
@Trott
Copy link
Member

Trott commented Jan 4, 2020

Landed in c9b93e2

@TrottTrott closed this Jan 4, 2020
targos pushed a commit that referenced this pull request Jan 6, 2020
PR-URL: #31163 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
@BridgeARBridgeAR mentioned this pull request Jan 7, 2020
targos pushed a commit that referenced this pull request Jan 14, 2020
PR-URL: #31163 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
@targostargos mentioned this pull request Jan 15, 2020
BethGriggs pushed a commit that referenced this pull request Feb 6, 2020
PR-URL: #31163 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Feb 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.lib / srcIssues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@Sebastien-Ahkrin@BridgeAR@targos@nodejs-github-bot@Trott@jasnell@devnexen@trivikr