mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibJS/Bytecode: Add support for new.target
This commit is contained in:
parent
fd235d8a06
commit
eac5534ce4
5 changed files with 46 additions and 0 deletions
|
@ -838,6 +838,18 @@ public:
|
|||
void replace_references_impl(BasicBlock const&, BasicBlock const&) { }
|
||||
};
|
||||
|
||||
class GetNewTarget final : public Instruction {
|
||||
public:
|
||||
explicit GetNewTarget()
|
||||
: Instruction(Type::GetNewTarget)
|
||||
{
|
||||
}
|
||||
|
||||
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
|
||||
String to_string_impl(Bytecode::Executable const&) const;
|
||||
void replace_references_impl(BasicBlock const&, BasicBlock const&) { }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace JS::Bytecode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue