mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibJS: Fix the return value for TemplateLiteral
This ensures that the bytecode generated for TemplateLiterals returns the correct value.
This commit is contained in:
committed by
Andreas Kling
parent
6d3361f077
commit
25ab31219c
@@ -649,6 +649,8 @@ void TemplateLiteral::generate_bytecode(Bytecode::Generator& generator) const
|
||||
generator.emit<Bytecode::Op::ConcatString>(string_reg);
|
||||
}
|
||||
}
|
||||
|
||||
generator.emit<Bytecode::Op::Load>(string_reg);
|
||||
}
|
||||
|
||||
void UpdateExpression::generate_bytecode(Bytecode::Generator& generator) const
|
||||
|
||||
Reference in New Issue
Block a user