Skip to content

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