mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +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
|
@ -15,7 +15,7 @@
|
|||
|
||||
import {
|
||||
FONT_IDENTITY_MATRIX, IDENTITY_MATRIX, ImageKind, info, isLittleEndian, isNum,
|
||||
OPS, shadow, TextRenderingMode, Util, warn
|
||||
OPS, shadow, TextRenderingMode, unreachable, Util, warn
|
||||
} from '../shared/util';
|
||||
import { getShadingPatternFromIR, TilingPattern } from './pattern_helper';
|
||||
|
||||
|
@ -1733,10 +1733,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
|
||||
// Images
|
||||
beginInlineImage: function CanvasGraphics_beginInlineImage() {
|
||||
throw new Error('Should not call beginInlineImage');
|
||||
unreachable('Should not call beginInlineImage');
|
||||
},
|
||||
beginImageData: function CanvasGraphics_beginImageData() {
|
||||
throw new Error('Should not call beginImageData');
|
||||
unreachable('Should not call beginImageData');
|
||||
},
|
||||
|
||||
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue