mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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. PR-URL: https://github.com/nodejs/node/pull/30610 Refs: https://github.com/nodejs/node/issues/29766 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
@@ -22,11 +22,9 @@
|
||||
'use strict';
|
||||
|
||||
const {
|
||||
Object: {
|
||||
setPrototypeOf: ObjectSetPrototypeOf,
|
||||
keys: ObjectKeys,
|
||||
values: ObjectValues
|
||||
}
|
||||
ObjectKeys,
|
||||
ObjectSetPrototypeOf,
|
||||
ObjectValues,
|
||||
} = primordials;
|
||||
|
||||
const net = require('net');
|
||||
|
||||
Reference in New Issue
Block a user