mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: use null-prototype objects for property descriptors
PR-URL: https://github.com/nodejs/node/pull/43473 Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
a055337a02
commit
bb30e2da7a
3 changed files with 7 additions and 3 deletions
|
@ -132,11 +132,13 @@ addBufferPrototypeMethods(Buffer.prototype);
|
|||
|
||||
const constants = ObjectDefineProperties({}, {
|
||||
MAX_LENGTH: {
|
||||
__proto__: null,
|
||||
value: kMaxLength,
|
||||
writable: false,
|
||||
enumerable: true
|
||||
},
|
||||
MAX_STRING_LENGTH: {
|
||||
__proto__: null,
|
||||
value: kStringMaxLength,
|
||||
writable: false,
|
||||
enumerable: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue