mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Replace Util.extendObj
by Object.assign
This commit is contained in:
parent
0e0fa489dd
commit
af8e88d00b
5 changed files with 14 additions and 14 deletions
|
@ -109,6 +109,15 @@ const hasDOM = typeof window === 'object' && typeof document === 'object';
|
|||
require('core-js/fn/array/includes');
|
||||
})();
|
||||
|
||||
// Provides support for Object.assign in legacy browsers.
|
||||
// Support: IE
|
||||
(function checkObjectAssign() {
|
||||
if (Object.assign) {
|
||||
return;
|
||||
}
|
||||
require('core-js/fn/object/assign');
|
||||
})();
|
||||
|
||||
// Provides support for Math.log2 in legacy browsers.
|
||||
// Support: IE, Chrome<38
|
||||
(function checkMathLog2() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue