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:
commit
a278c5a8dc
5 changed files with 14 additions and 14 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue