mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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>
This commit is contained in:
1 parent
48d986c40f
commit
437b6d5d4f
1 file changed
+2
-2
+2
-2
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user