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 <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>
  • 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.