mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #9272 from nveenjain/fix/8846
Replaced occurence of `throw new Error` with `unreachable`
This commit is contained in:
commit
6bbe91079b
12 changed files with 41 additions and 32 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {
|
||||
bytesToString, FONT_IDENTITY_MATRIX, FontType, FormatError, info, isNum,
|
||||
isSpace, MissingDataException, readUint32, shadow, string32, warn
|
||||
isSpace, MissingDataException, readUint32, shadow, string32, unreachable, warn
|
||||
} from '../shared/util';
|
||||
import {
|
||||
CFF, CFFCharset, CFFCompiler, CFFHeader, CFFIndex, CFFParser, CFFPrivateDict,
|
||||
|
@ -295,7 +295,7 @@ var IdentityToUnicodeMap = (function IdentityToUnicodeMapClosure() {
|
|||
},
|
||||
|
||||
amend(map) {
|
||||
throw new Error('Should not call amend()');
|
||||
unreachable('Should not call amend()');
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue