1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38: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

@ -14,7 +14,7 @@
*/
import {
FormatError, info, isBool, isEvalSupported, shadow
FormatError, info, isBool, isEvalSupported, shadow, unreachable
} from '../shared/util';
import { isDict, isStream } from './primitives';
import { PostScriptLexer, PostScriptParser } from './ps_parser';
@ -822,7 +822,7 @@ var PostScriptCompiler = (function PostScriptCompilerClosure() {
this.type = type;
}
AstNode.prototype.visit = function (visitor) {
throw new Error('abstract method');
unreachable('abstract method');
};
function AstArgument(index, min, max) {