mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #11073 from brendandahl/code-point
Move polyfill for codePointAt to String prototype.
This commit is contained in:
commit
1565d1849d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue