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:
Jonas Jenwald 2018-08-20 12:14:37 +02:00
parent 435ec6a0d5
commit d6f4d2ff33

View File

@ -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.