Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: slice -> subarray #730

Merged
merged 1 commit into from
Nov 28, 2023
Merged

chore: slice -> subarray #730

merged 1 commit into from
Nov 28, 2023

Conversation

jimmywarting
Copy link
Contributor

@jimmywarting jimmywarting commented Jun 25, 2023

it was bad of NodeJS to override slice with an alias of subarray that dose two different things... if ppl actually wish to make a new sub-view of same underlying buffer then they should have actually used subarray instead which cased confusion from developer thinking that slice() would cause a immutable copy.

so they have now deprecated buffer.slice

@kibertoad kibertoad merged commit 03f458d into amqp-node:main Nov 28, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants