mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +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
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {
|
||||
createPromiseCapability, createValidAbsoluteUrl, MissingDataException,
|
||||
NotImplementedException, shadow, Util, warn
|
||||
NotImplementedException, shadow, unreachable, Util, warn
|
||||
} from '../shared/util';
|
||||
import { ChunkedStreamManager } from './chunked_stream';
|
||||
import { PDFDocument } from './document';
|
||||
|
@ -23,7 +23,7 @@ import { Stream } from './stream';
|
|||
|
||||
var BasePdfManager = (function BasePdfManagerClosure() {
|
||||
function BasePdfManager() {
|
||||
throw new Error('Cannot initialize BaseManagerManager');
|
||||
unreachable('Cannot initialize BaseManagerManager');
|
||||
}
|
||||
|
||||
BasePdfManager.prototype = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue