mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Change splice to pop in annotation tests
This line in the annotation tests subtracts an array from a number. This is because `splice(-1, 1)` returns a one-element array, while `pop()` returns only the element itself.
This commit is contained in:
parent
f31f4bea4f
commit
b157d8b478
1 changed files with 1 additions and 1 deletions
|
@ -975,7 +975,7 @@ describe('annotation', function() {
|
|||
|
||||
// Remove the last invalid flag for the next iteration.
|
||||
if (!valid) {
|
||||
flags -= invalidFieldFlags.splice(-1, 1);
|
||||
flags -= invalidFieldFlags.pop();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue