lib: flatten access to primordials
Store all primordials as properties of the primordials object. Static functions are prefixed by the constructor's name and prototype methods are prefixed by the constructor's name followed by "Prototype". For example: primordials.Object.keys becomes primordials.ObjectKeys.
Refs: https://github.com/nodejs/node/issues/29766
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
I'm open to suggestions if we want to make the name of prototype methods shorter.
We could use ClassProtoMethod()
instead of ClassPrototypeMethod()
or remove "Prototype" entirely from the name (if there are no conflicts).