mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibJS: Implement import.meta for bytecode
This commit is contained in:
parent
a1692931af
commit
d29bd55b48
8 changed files with 78 additions and 49 deletions
|
@ -1538,6 +1538,19 @@ public:
|
|||
void replace_references_impl(Register, Register) { }
|
||||
};
|
||||
|
||||
class GetImportMeta final : public Instruction {
|
||||
public:
|
||||
explicit GetImportMeta()
|
||||
: Instruction(Type::GetImportMeta)
|
||||
{
|
||||
}
|
||||
|
||||
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
|
||||
DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const;
|
||||
void replace_references_impl(BasicBlock const&, BasicBlock const&) { }
|
||||
void replace_references_impl(Register, Register) { }
|
||||
};
|
||||
|
||||
class TypeofVariable final : public Instruction {
|
||||
public:
|
||||
explicit TypeofVariable(IdentifierTableIndex identifier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue