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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue