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

String.prototype.substr() deprecation #1958

Open
Martii opened this issue May 24, 2022 · 0 comments
Open

String.prototype.substr() deprecation #1958

Martii opened this issue May 24, 2022 · 0 comments
Labels
CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge. migration Use this to indicate that it may apply to an existing or announced migration.

Comments

@Martii
Copy link
Member

Martii commented May 24, 2022

What’s missing?

https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/substr migration.

Why?

Because JavaScript (ECMAScript) API has issues with keeping constant methods in place and wants to make it look like they are unique outside of C/CPP. 😸

Alternatives you tried

n/a

NOTE(s):

  • slice should work with most of ours with a little finagling.

REF(s):

@Martii Martii added enhancement Something we do have implemented already but needs improvement upon to the best of knowledge. migration Use this to indicate that it may apply to an existing or announced migration. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. labels May 24, 2022
@Martii Martii changed the title String.prototype.substr() String.prototype.substr() deprecation May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge. migration Use this to indicate that it may apply to an existing or announced migration.
Development

No branches or pull requests

1 participant