Skip to content

Commit

Permalink
lib: replace Symbol.species by SymbolSpecies
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Sebastien-Ahkrin authored and targos committed Jan 14, 2020
1 parent 581e837 commit f33147b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const {
ObjectDefineProperties,
ObjectDefineProperty,
ObjectSetPrototypeOf,
Symbol,
SymbolSpecies,
SymbolToPrimitive,
} = primordials;

Expand Down Expand Up @@ -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; }
Expand Down

0 comments on commit f33147b

Please sign in to comment.