1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Replace Util.extendObj by Object.assign

This commit is contained in:
Tim van der Meij 2018-06-10 19:59:03 +02:00
parent 0e0fa489dd
commit af8e88d00b
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
5 changed files with 14 additions and 14 deletions

View file

@ -13,9 +13,7 @@
* limitations under the License.
*/
import {
ImageKind, OPS, Util
} from '../shared/util';
import { ImageKind, OPS } from '../shared/util';
var QueueOptimizer = (function QueueOptimizerClosure() {
function addState(parentState, pattern, checkFn, iterateFn, processFn) {
@ -612,7 +610,7 @@ var OperatorList = (function OperatorListClosure() {
},
addOpList(opList) {
Util.extendObj(this.dependencies, opList.dependencies);
Object.assign(this.dependencies, opList.dependencies);
for (var i = 0, ii = opList.length; i < ii; i++) {
this.addOp(opList.fnArray[i], opList.argsArray[i]);
}