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

Merge pull request #9795 from timvandermeij/object-assign

Replace `Util.extendObj` by `Object.assign`
This commit is contained in:
Brendan Dahl 2018-06-20 10:50:40 -07:00 committed by GitHub
commit a278c5a8dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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]);
}