Lint
This commit is contained in:
parent
9e9674d45c
commit
775290d698
@ -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…
x
Reference in New Issue
Block a user