mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58: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
|
@ -16,7 +16,8 @@
|
|||
import {
|
||||
bytesToString, createPromiseCapability, createValidAbsoluteUrl, FormatError,
|
||||
info, InvalidPDFException, isBool, isString, MissingDataException, shadow,
|
||||
stringToPDFString, stringToUTF8String, Util, warn, XRefParseException
|
||||
stringToPDFString, stringToUTF8String, unreachable, Util, warn,
|
||||
XRefParseException
|
||||
} from '../shared/util';
|
||||
import {
|
||||
Dict, isCmd, isDict, isName, isRef, isRefsEqual, isStream, Ref, RefSet,
|
||||
|
@ -1474,7 +1475,7 @@ var XRef = (function XRefClosure() {
|
|||
*/
|
||||
var NameOrNumberTree = (function NameOrNumberTreeClosure() {
|
||||
function NameOrNumberTree(root, xref) {
|
||||
throw new Error('Cannot initialize NameOrNumberTree.');
|
||||
unreachable('Cannot initialize NameOrNumberTree.');
|
||||
}
|
||||
|
||||
NameOrNumberTree.prototype = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue