1
0
Fork 0
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:
Naveen Jain 2017-12-13 19:21:45 +05:30
parent b327633ad6
commit 1135674647
12 changed files with 41 additions and 32 deletions

View file

@ -13,7 +13,9 @@
* limitations under the License.
*/
import { bytesToString, FormatError, Util } from '../shared/util';
import {
bytesToString, FormatError, unreachable, Util
} from '../shared/util';
import { CFFParser } from './cff_parser';
import { getGlyphsUnicode } from './glyphlist';
import { StandardEncoding } from './encodings';
@ -628,7 +630,7 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {
},
compileGlyphImpl() {
throw new Error('Children classes should implement this.');
unreachable('Children classes should implement this.');
},
hasBuiltPath(unicode) {