lib: enhance use of WeakMap with primordials
Hello, Now, I have added WeakMap in the primordials eslint so have created a line in "/lib/.eslintrc.yaml".
rules:
no-restricted-globals:
- name: WeakMap
message: "Use `const { WeakMap } = primordials;` instead of the global."
And just import WeakMap in one file actually like that :).
const {
// [...]
WeakMap,
} = primordials;
Thanks to allow me to create some PR btw