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
@ -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…
x
Reference in New Issue
Block a user