1
Fork 0
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:
Luke Wilde 2022-03-19 19:40:21 +00:00 committed by Andreas Kling
parent fd235d8a06
commit eac5534ce4
5 changed files with 46 additions and 0 deletions

View file

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