mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Add a Symbol
polyfill, using core-js, to allow using for...of
loops
https://github.com/zloirock/core-js#ecmascript-symbol
This commit is contained in:
parent
435ec6a0d5
commit
d6f4d2ff33
1 changed files with 8 additions and 0 deletions
|
@ -183,6 +183,14 @@ const hasDOM = typeof window === 'object' && typeof document === 'object';
|
||||||
String.fromCodePoint = require('core-js/fn/string/from-code-point');
|
String.fromCodePoint = require('core-js/fn/string/from-code-point');
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
// Support: IE
|
||||||
|
(function checkSymbol() {
|
||||||
|
if (globalScope.Symbol) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
require('core-js/es6/symbol');
|
||||||
|
})();
|
||||||
|
|
||||||
} // End of !PDFJSDev.test('CHROME')
|
} // End of !PDFJSDev.test('CHROME')
|
||||||
|
|
||||||
// Provides support for Object.values in legacy browsers.
|
// Provides support for Object.values in legacy browsers.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue