LibJS/Bytecode: Rename TypeofVariable => TypeofBinding

This commit is contained in:
Andreas Kling
2024-06-14 09:37:26 +02:00
committed by Andreas Kling
parent 9d21d88374
commit 4302e07346
5 changed files with 11 additions and 11 deletions

View File

@@ -362,7 +362,7 @@ Bytecode::CodeGenerationErrorOr<Optional<ScopedOperand>> UnaryExpression::genera
if (is<Identifier>(*m_lhs)) {
auto& identifier = static_cast<Identifier const&>(*m_lhs);
if (!identifier.is_local()) {
generator.emit<Bytecode::Op::TypeofVariable>(dst, generator.intern_identifier(identifier.string()));
generator.emit<Bytecode::Op::TypeofBinding>(dst, generator.intern_identifier(identifier.string()));
break;
}
}