1
0
Fork 0
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:
Tim van der Meij 2017-12-15 22:11:32 +01:00 committed by GitHub
commit 6bbe91079b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 41 additions and 32 deletions

View file

@ -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()');
},
};