mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Move polyfill for codePointAt to String prototype.
This method belongs on the prototype not the String object.
This commit is contained in:
parent
02dcd20263
commit
c8129b8787
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