tools,lib: recommend using safe primordials
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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines