Skip to content

Commit

Permalink
lib: replace symbol.species by SymbolSpecies
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien-Ahkrin committed Dec 14, 2019
1 parent d64c1dc commit e920cef
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 e920cef

Please sign in to comment.