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:
parent
b327633ad6
commit
1135674647
12 changed files with 41 additions and 32 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue