diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-06-03 10:23:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 09:23:58 +0100 |
commit | 06d860696033b67a8f4aa97b083009ad3d82ef26 (patch) | |
tree | 35c2c4a08254640cb1b2c83aafc6c2c30c39a5cf /lib/string_decoder.js | |
parent | 218664f638a91e331b800b2d49eca55a65899a50 (diff) | |
download | node-new-06d860696033b67a8f4aa97b083009ad3d82ef26.tar.gz |
lib: use null-prototype objects for property descriptors
Refs: https://github.com/nodejs/node/pull/42921
PR-URL: https://github.com/nodejs/node/pull/43270
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Diffstat (limited to 'lib/string_decoder.js')
-rw-r--r-- | lib/string_decoder.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/string_decoder.js b/lib/string_decoder.js index 9eae594aaa..a22da17f50 100644 --- a/lib/string_decoder.js +++ b/lib/string_decoder.js @@ -140,6 +140,7 @@ StringDecoder.prototype.text = function text(buf, offset) { ObjectDefineProperties(StringDecoder.prototype, { lastChar: { + __proto__: null, configurable: true, enumerable: true, get() { @@ -149,6 +150,7 @@ ObjectDefineProperties(StringDecoder.prototype, { } }, lastNeed: { + __proto__: null, configurable: true, enumerable: true, get() { @@ -156,6 +158,7 @@ ObjectDefineProperties(StringDecoder.prototype, { } }, lastTotal: { + __proto__: null, configurable: true, enumerable: true, get() { |