mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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:
parent
6d3361f077
commit
25ab31219c
Notes:
sideshowbarker
2024-07-18 12:31:22 +09:00
Author: https://github.com/gunnarbeutner
Commit: 25ab31219c
Pull-request: https://github.com/SerenityOS/serenity/pull/7959
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue