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

Change deprecated arguments syntax to rest parameters #571

Merged
merged 2 commits into from Nov 24, 2019

Conversation

Khaaz
Copy link
Contributor

@Khaaz Khaaz commented Nov 24, 2019

This PR updates the emit method in Shard.js to use rest parameters instead of arguments as arguments is deprecated (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments).
I also switched the .apply to .call using spread syntax because .call is prefered in the rest of the lib but if that matters we can still use .apply with the args array directly.

@abalabahaha abalabahaha merged commit 1e59a20 into abalabahaha:dev Nov 24, 2019
@Khaaz Khaaz deleted the patch1 branch December 1, 2019 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants