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

refactor: replace deprecated String.prototype.substr() #691

Merged
merged 1 commit into from
Jun 14, 2022
Merged

refactor: replace deprecated String.prototype.substr() #691

merged 1 commit into from
Jun 14, 2022

Conversation

lamweili
Copy link
Contributor

Note: the engine.io.js file is the generated output of make engine.io.js, and should not be manually modified.

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

Deprecated String.prototype.substr() is used.

New behaviour

String.prototype.slice() is used instead.

Other information (e.g. related issues)

N.A.

`.substr()` is deprecated so we replace it with `.slice()` which works similarly but isn't deprecated.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr

Signed-off-by: Lam Wei Li <peteriman@mail.com>
@darrachequesne darrachequesne merged commit dfee8de into socketio:main Jun 14, 2022
@darrachequesne
Copy link
Member

Thanks 👍

@lamweili lamweili deleted the rm-deprecated-substr branch June 28, 2022 16:38
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.

2 participants