mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Lint
This commit is contained in:
parent
9e9674d45c
commit
775290d698
1 changed files with 9 additions and 9 deletions
|
@ -319,8 +319,8 @@ var XRef = (function XRefClosure() {
|
||||||
entry.uncompressed = true;
|
entry.uncompressed = true;
|
||||||
|
|
||||||
// Validate entry obj
|
// Validate entry obj
|
||||||
if ( !isInt(entry.offset) || !isInt(entry.gen) ||
|
if (!isInt(entry.offset) || !isInt(entry.gen) ||
|
||||||
!(entry.free || entry.uncompressed) ) {
|
!(entry.free || entry.uncompressed)) {
|
||||||
error('Invalid entry in XRef subsection: ' + first + ', ' + count);
|
error('Invalid entry in XRef subsection: ' + first + ', ' + count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,8 +330,8 @@ var XRef = (function XRefClosure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sanity check: as per spec, first object must have these properties
|
// Sanity check: as per spec, first object must have these properties
|
||||||
if ( this.entries[0] &&
|
if (this.entries[0] &&
|
||||||
!(this.entries[0].gen === 65535 && this.entries[0].free) )
|
!(this.entries[0].gen === 65535 && this.entries[0].free))
|
||||||
error('Invalid XRef table: unexpected first object');
|
error('Invalid XRef table: unexpected first object');
|
||||||
|
|
||||||
// Sanity check
|
// Sanity check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue