Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f33147b

Browse filesBrowse files
Sebastien-Ahkrintargos
authored andcommitted
lib: replace Symbol.species by SymbolSpecies
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>
1 parent 581e837 commit f33147b
Copy full SHA for f33147b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/buffer.js‎

Copy file name to clipboardExpand all lines: lib/buffer.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.