Index: test/unittests/interpreter/source-position-table-unittest.cc |
diff --git a/test/unittests/interpreter/source-position-table-unittest.cc b/test/unittests/interpreter/source-position-table-unittest.cc |
index af70179ef454824d7aa2ed96edc759e56b1a2312..d62302a2cd653cd6928a5346251211cf2ace1ae0 100644 |
--- a/test/unittests/interpreter/source-position-table-unittest.cc |
+++ b/test/unittests/interpreter/source-position-table-unittest.cc |
@@ -37,15 +37,7 @@ TEST_F(SourcePositionTableTest, EncodeStatementDuplicates) { |
SourcePositionTableBuilder builder(isolate(), zone()); |
for (int i = 0; i < arraysize(offsets); i++) { |
builder.AddStatementPosition(offsets[i], offsets[i]); |
- builder.AddStatementPosition( |
- offsets[i], offsets[i], |
- (i % 2 == 0) ? SourcePositionTableBuilder::OVERWRITE_DUPLICATE |
- : SourcePositionTableBuilder::DISCARD_DUPLICATE); |
- builder.AddStatementPosition(offsets[i], offsets[i]); |
- builder.AddStatementPosition( |
- offsets[i], offsets[i], |
- (i % 2 == 0) ? SourcePositionTableBuilder::OVERWRITE_DUPLICATE |
- : SourcePositionTableBuilder::DISCARD_DUPLICATE); |
+ builder.AddStatementPosition(offsets[i], offsets[i] + 1); |
} |
// To test correctness, we rely on the assertions in ToSourcePositionTable(). |