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
@ -183,6 +183,14 @@ const hasDOM = typeof window === 'object' && typeof document === 'object';
|
||||
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')
|
||||
|
||||
// Provides support for Object.values in legacy browsers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user