FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lib: Replace Symbol global by the primordials Symbol by Sebastien-Ahkrin · Pull Request #30737 · nodejs/node · GitHub

/ node Public

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 commented Nov 30, 2019
edited
Loading

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: Symbol
      message: "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-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Nov 30, 2019

Copy link
Copy Markdown
Collaborator

targos commented Nov 30, 2019

Copy link
Copy Markdown
Member

Refs: #30697

Sebastien-Ahkrin force-pushed the Symbol branch 2 times, most recently from d356582 to c58ec88 Compare November 30, 2019 17:28
Sebastien-Ahkrin force-pushed the Symbol branch 2 times, most recently from bbd0bf2 to c74a4f4 Compare November 30, 2019 18:29

Copy link
Copy Markdown
Collaborator

Comment thread lib/internal/freeze_intrinsics.js Outdated

Copy link
Copy Markdown
Collaborator

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 commented Dec 8, 2019

Copy link
Copy Markdown
Member

Landed in eac3f0a

targos 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>
MylesBorins 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>
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>
MylesBorins mentioned this pull request Feb 8, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib / src Issues 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


Back | FazBrowse Home | New Git URL