1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Move MessageHandler into a separate src/shared/message_handler.js file

The `MessageHandler` itself, and its assorted helper functions, are currently the single largest[1] piece of code in the `src/shared/util.js` file. By moving this code into its own file, `src/shared/util.js` thus becomes smaller and more manageable.
This commit is contained in:
Jonas Jenwald 2018-06-04 12:37:54 +02:00
parent 69f2a77543
commit 44d8afd46b
7 changed files with 458 additions and 434 deletions

View file

@ -15,12 +15,13 @@
import {
arrayByteLength, arraysToBytes, assert, createPromiseCapability, info,
InvalidPDFException, MessageHandler, MissingPDFException, PasswordException,
InvalidPDFException, MissingPDFException, PasswordException,
setVerbosityLevel, UnexpectedResponseException, UnknownErrorException,
UNSUPPORTED_FEATURES, warn, XRefParseException
} from '../shared/util';
import { LocalPdfManager, NetworkPdfManager } from './pdf_manager';
import isNodeJS from '../shared/is_node';
import { MessageHandler } from '../shared/message_handler';
import { Ref } from './primitives';
var WorkerTask = (function WorkerTaskClosure() {