mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Replaced occurence of throw new Error
with unreachable
where applicable
This commit is contained in:
parent
b327633ad6
commit
1135674647
12 changed files with 41 additions and 32 deletions
|
@ -18,7 +18,8 @@ import {
|
|||
assert, createPromiseCapability, getVerbosityLevel, info, InvalidPDFException,
|
||||
isArrayBuffer, isSameOrigin, loadJpegStream, MessageHandler,
|
||||
MissingPDFException, NativeImageDecoding, PageViewport, PasswordException,
|
||||
stringToBytes, UnexpectedResponseException, UnknownErrorException, Util, warn
|
||||
stringToBytes, UnexpectedResponseException, UnknownErrorException,
|
||||
unreachable, Util, warn
|
||||
} from '../shared/util';
|
||||
import {
|
||||
DOMCanvasFactory, DOMCMapReaderFactory, DummyStatTimer, getDefaultSetting,
|
||||
|
@ -475,7 +476,7 @@ var PDFDataRangeTransport = (function pdfDataRangeTransportClosure() {
|
|||
|
||||
requestDataRange:
|
||||
function PDFDataRangeTransport_requestDataRange(begin, end) {
|
||||
throw new Error('Abstract method PDFDataRangeTransport.requestDataRange');
|
||||
unreachable('Abstract method PDFDataRangeTransport.requestDataRange');
|
||||
},
|
||||
|
||||
abort: function PDFDataRangeTransport_abort() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue