Merge pull request #11073 from brendandahl/code-point
Move polyfill for codePointAt to String prototype.
This commit is contained in:
commit
1565d1849d
@ -227,10 +227,10 @@ const hasDOM = typeof window === 'object' && typeof document === 'object';
|
||||
// Provides support for String.codePointAt in legacy browsers.
|
||||
// Support: IE11.
|
||||
(function checkStringCodePointAt() {
|
||||
if (String.codePointAt) {
|
||||
if (String.prototype.codePointAt) {
|
||||
return;
|
||||
}
|
||||
String.codePointAt = require('core-js/fn/string/code-point-at');
|
||||
require('core-js/fn/string/code-point-at');
|
||||
})();
|
||||
|
||||
// Provides support for String.fromCodePoint in legacy browsers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user