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

tools,lib: recommend using safe primordials #36026

Closed
wants to merge 1 commit into from

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Nov 7, 2020

Make the linter recommend replacing globalThis.Map by primordials.SafeMap, and similar for Set, WeakMap and WeakSet.

Note that the use of primordials.Map is still allowed (same for primordials.Set and weak classes).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Make the linter recommend replacing `globalThis.Map` by
`primordials.SafeMap`, and similar for `Set`, `WeakSet`, and `WeakMap`.
@aduh95 aduh95 added the request-ci label Nov 7, 2020
@aduh95 aduh95 requested a review from Leko Nov 7, 2020
@github-actions github-actions bot removed the request-ci label Nov 7, 2020
@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Nov 7, 2020

targos
targos approved these changes Nov 7, 2020
@aduh95 aduh95 added the author ready label Nov 7, 2020
lib/.eslintrc.yaml Show resolved Hide resolved
@aduh95 aduh95 removed the author ready label Nov 8, 2020
Leko
Leko approved these changes Nov 9, 2020
@aduh95 aduh95 added author ready commit-queue labels Nov 9, 2020
@github-actions github-actions bot removed the commit-queue label Nov 9, 2020
@github-actions
Copy link

@github-actions github-actions bot commented Nov 9, 2020

Landed in 2c77fe1...831f4c7

@github-actions github-actions bot closed this Nov 9, 2020
nodejs-github-bot added a commit that referenced this issue Nov 9, 2020
Make the linter recommend replacing `globalThis.Map` by
`primordials.SafeMap`, and similar for `Set`, `WeakSet`, and `WeakMap`.

PR-URL: #36026
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
@aduh95 aduh95 deleted the safe-primordials branch Nov 9, 2020
danielleadams added a commit that referenced this issue Nov 10, 2020
Make the linter recommend replacing `globalThis.Map` by
`primordials.SafeMap`, and similar for `Set`, `WeakSet`, and `WeakMap`.

PR-URL: #36026
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
@danielleadams danielleadams mentioned this pull request Nov 10, 2020
targos added a commit that referenced this issue May 16, 2021
Make the linter recommend replacing `globalThis.Map` by
`primordials.SafeMap`, and similar for `Set`, `WeakSet`, and `WeakMap`.

PR-URL: #36026
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
targos added a commit that referenced this issue May 16, 2021
Make the linter recommend replacing `globalThis.Map` by
`primordials.SafeMap`, and similar for `Set`, `WeakSet`, and `WeakMap`.

PR-URL: #36026
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
targos added a commit that referenced this issue Jun 11, 2021
Make the linter recommend replacing `globalThis.Map` by
`primordials.SafeMap`, and similar for `Set`, `WeakSet`, and `WeakMap`.

PR-URL: #36026
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants