1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 08:25:07 +00: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:
Gunnar Beutner 2021-06-09 21:11:04 +02:00 committed by Andreas Kling
parent 6d3361f077
commit 25ab31219c

View file

@ -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