Skip to content

Commit

Permalink
Add a Symbol polyfill, using core-js, to allow using for...of loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuffleupagus committed Sep 16, 2018
1 parent 40934fb commit f027494
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/shared/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f027494

Please sign in to comment.