Index: test/unittests/interpreter/bytecode-pipeline-unittest.cc |
diff --git a/test/unittests/interpreter/bytecode-pipeline-unittest.cc b/test/unittests/interpreter/bytecode-pipeline-unittest.cc |
index c4388e8fedbd5f8b9c08d0b530064727be90e57c..63da076c4a8f0665e30e9188efe231d928aa6507 100644 |
--- a/test/unittests/interpreter/bytecode-pipeline-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-pipeline-unittest.cc |
@@ -68,11 +68,12 @@ TEST_F(BytecodeNodeTest, Constructor2) { |
} |
TEST_F(BytecodeNodeTest, Constructor3) { |
- uint32_t operands[] = {0x11}; |
- BytecodeNode node(Bytecode::kLdaGlobal, operands[0]); |
+ uint32_t operands[] = {0x11, 0x22}; |
+ BytecodeNode node(Bytecode::kLdaGlobal, operands[0], operands[1]); |
CHECK_EQ(node.bytecode(), Bytecode::kLdaGlobal); |
- CHECK_EQ(node.operand_count(), 1); |
+ CHECK_EQ(node.operand_count(), 2); |
CHECK_EQ(node.operand(0), operands[0]); |
+ CHECK_EQ(node.operand(1), operands[1]); |
CHECK(!node.source_info().is_valid()); |
} |