Skip to content

Commit dc98bf7

Browse files
Merge pull request #10179 from ThomasdenH/patch-1
Change splice to pop in annotation tests
2 parents f31f4be + b157d8b commit dc98bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/annotation_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ describe('annotation', function() {
975975

976976
// Remove the last invalid flag for the next iteration.
977977
if (!valid) {
978-
flags -= invalidFieldFlags.splice(-1, 1);
978+
flags -= invalidFieldFlags.pop();
979979
}
980980
});
981981
});

0 commit comments

Comments
 (0)