Index: test/unittests/interpreter/bytecode-array-writer-unittest.cc |
diff --git a/test/unittests/interpreter/bytecode-array-writer-unittest.cc b/test/unittests/interpreter/bytecode-array-writer-unittest.cc |
index a8dee97b5061b2b41a1cfa3de94e256f5066f697..5d94e323288e3cae83b8b1651298e0ba37e9c3cd 100644 |
--- a/test/unittests/interpreter/bytecode-array-writer-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-writer-unittest.cc |
@@ -136,7 +136,8 @@ TEST_F(BytecodeArrayWriterUnittest, SimpleExample) { |
for (size_t i = 0; i < arraysize(expected_positions); ++i) { |
const PositionTableEntry& expected = expected_positions[i]; |
CHECK_EQ(source_iterator.code_offset(), expected.code_offset); |
- CHECK_EQ(source_iterator.source_position(), expected.source_position); |
+ CHECK_EQ(source_iterator.source_position().ScriptOffset(), |
+ expected.source_position); |
CHECK_EQ(source_iterator.is_statement(), expected.is_statement); |
source_iterator.Advance(); |
} |
@@ -222,7 +223,8 @@ TEST_F(BytecodeArrayWriterUnittest, ComplexExample) { |
for (size_t i = 0; i < arraysize(expected_positions); ++i) { |
const PositionTableEntry& expected = expected_positions[i]; |
CHECK_EQ(source_iterator.code_offset(), expected.code_offset); |
- CHECK_EQ(source_iterator.source_position(), expected.source_position); |
+ CHECK_EQ(source_iterator.source_position().ScriptOffset(), |
+ expected.source_position); |
CHECK_EQ(source_iterator.is_statement(), expected.is_statement); |
source_iterator.Advance(); |
} |