-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
do not modify String.prototype in js package #4200
Conversation
Not sure if |
Signed-off-by: Jon Harris <harris.jb@gmail.com>
f4099da
to
790d540
Compare
@@ -4,8 +4,6 @@ | |||
*/ | |||
|
|||
import Token from './Token.js'; | |||
import './polyfills/codepointat.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does removing this relate to the PR ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those polyfills are modifying the String.prototype if you look at the code.
For example here:
I did check that these polyfills are no longer needed, we've come a long way since they were added around 6 years ago! Now those functions that were polyfilled are available everywhere.
https://caniuse.com/mdn-javascript_builtins_string_codepointat
https://caniuse.com/mdn-javascript_builtins_string_fromcodepoint
Yes THIRD-PARTY-NOTICES should be removed |
Signed-off-by: Jon Harris <harris.jb@gmail.com>
@parrt blessed |
* do not modify String.prototype in js package Signed-off-by: Jon Harris <harris.jb@gmail.com> * remove notice file that is no longer relevant Signed-off-by: Jon Harris <harris.jb@gmail.com> --------- Signed-off-by: Jon Harris <harris.jb@gmail.com> Signed-off-by: Jim.Idle <jimi@idle.ws>
No description provided.