diff options
author | Sebastien Ahkrin <sebastien48criquet@gmail.com> | 2019-12-13 22:47:39 +0100 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2020-02-06 02:49:23 +0000 |
commit | 0229a24b470e032ad3f6d986324a6b50be6a3b80 (patch) | |
tree | 8bddda1b5c93849554e7a3bf00a5eb245144d051 | |
parent | e01433db8b6d2589775396e7f1dc1be4007ff65d (diff) | |
download | node-new-0229a24b470e032ad3f6d986324a6b50be6a3b80.tar.gz |
lib: replace Symbol.species by SymbolSpecies
PR-URL: https://github.com/nodejs/node/pull/30950
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r-- | lib/buffer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buffer.js b/lib/buffer.js index 955a240fa3..74d6511b35 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -34,7 +34,7 @@ const { ObjectDefineProperties, ObjectDefineProperty, ObjectSetPrototypeOf, - Symbol, + SymbolSpecies, SymbolToPrimitive, } = primordials; @@ -268,7 +268,7 @@ function Buffer(arg, encodingOrOffset, length) { return Buffer.from(arg, encodingOrOffset, length); } -ObjectDefineProperty(Buffer, Symbol.species, { +ObjectDefineProperty(Buffer, SymbolSpecies, { enumerable: false, configurable: true, get() { return FastBuffer; } |