Skip to content

Commit f33147b

Browse files
Sebastien-Ahkrintargos
authored andcommitted
lib: replace Symbol.species by SymbolSpecies
PR-URL: #30950 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 581e837 commit f33147b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/buffer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const {
3434
ObjectDefineProperties,
3535
ObjectDefineProperty,
3636
ObjectSetPrototypeOf,
37-
Symbol,
37+
SymbolSpecies,
3838
SymbolToPrimitive,
3939
} = primordials;
4040

@@ -268,7 +268,7 @@ function Buffer(arg, encodingOrOffset, length) {
268268
return Buffer.from(arg, encodingOrOffset, length);
269269
}
270270

271-
ObjectDefineProperty(Buffer, Symbol.species, {
271+
ObjectDefineProperty(Buffer, SymbolSpecies, {
272272
enumerable: false,
273273
configurable: true,
274274
get() { return FastBuffer; }

0 commit comments

Comments
 (0)