mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +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
|
@ -18,7 +18,7 @@ import {
|
|||
assert, createPromiseCapability, getVerbosityLevel, info, InvalidPDFException,
|
||||
isArrayBuffer, isSameOrigin, MissingPDFException, NativeImageDecoding,
|
||||
PasswordException, setVerbosityLevel, shadow, stringToBytes,
|
||||
UnexpectedResponseException, UnknownErrorException, unreachable, Util, warn
|
||||
UnexpectedResponseException, UnknownErrorException, unreachable, warn
|
||||
} from '../shared/util';
|
||||
import {
|
||||
DOMCanvasFactory, DOMCMapReaderFactory, DummyStatTimer, loadScript,
|
||||
|
@ -1074,7 +1074,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||
resolve(textContent);
|
||||
return;
|
||||
}
|
||||
Util.extendObj(textContent.styles, value.styles);
|
||||
Object.assign(textContent.styles, value.styles);
|
||||
textContent.items.push(...value.items);
|
||||
pump();
|
||||
}, reject);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue