Skip to content

lib: Replace Symbol global by the primordials Symbol - #30737

Closed
Sebastien-Ahkrin wants to merge 1 commit into
nodejs:masterfrom
Sebastien-Ahkrin:Symbol
Closed

lib: Replace Symbol global by the primordials Symbol#30737
Sebastien-Ahkrin wants to merge 1 commit into
nodejs:masterfrom
Sebastien-Ahkrin:Symbol

Conversation

@Sebastien-Ahkrin

@Sebastien-AhkrinSebastien-Ahkrin commented Nov 30, 2019

Copy link
Copy Markdown
Contributor

Update some file to replace Symbol global object to the Symbol primordials.

And i just have created a line in "/lib/.eslintrc.yaml".

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

Next, just adding : Symbol to every

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

This task was given to me by @targos thanks ❤️
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 Nov 30, 2019
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@targos

Copy link
Copy Markdown
Member

Refs: #30697

@Sebastien-Ahkrin
Sebastien-Ahkrinforce-pushed the Symbol branch 2 times, most recently from d356582 to c58ec88CompareNovember 30, 2019 17:28
@Sebastien-Ahkrin
Sebastien-Ahkrinforce-pushed the Symbol branch 2 times, most recently from bbd0bf2 to c74a4f4CompareNovember 30, 2019 18:29
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadlib/internal/freeze_intrinsics.js Outdated
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

targos pushed a commit that referenced this pull request Dec 8, 2019
PR-URL: #30737
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@targos

Copy link
Copy Markdown
Member

Landed in eac3f0a

@targostargos closed this Dec 8, 2019
targos pushed a commit that referenced this pull request Dec 9, 2019
PR-URL: #30737
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Dec 13, 2019
targos pushed a commit that referenced this pull request Jan 14, 2020
PR-URL: #30737
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@targostargos mentioned this pull request Jan 15, 2020
BethGriggs pushed a commit that referenced this pull request Feb 6, 2020
PR-URL: #30737
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@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

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.

7 participants

@Sebastien-Ahkrin@nodejs-github-bot@targos@lpinca@cjihrig@BridgeAR@trivikr