|
@@ -1091,6 +1091,12 @@ ThrowCompletionOr<void> TypeofVariable::execute_impl(Bytecode::Interpreter& inte
|
|
return {};
|
|
return {};
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ThrowCompletionOr<void> ToNumeric::execute_impl(Bytecode::Interpreter& interpreter) const
|
|
|
|
+{
|
|
|
|
+ interpreter.accumulator() = TRY(interpreter.accumulator().to_numeric(interpreter.vm()));
|
|
|
|
+ return {};
|
|
|
|
+}
|
|
|
|
+
|
|
DeprecatedString Load::to_deprecated_string_impl(Bytecode::Executable const&) const
|
|
DeprecatedString Load::to_deprecated_string_impl(Bytecode::Executable const&) const
|
|
{
|
|
{
|
|
return DeprecatedString::formatted("Load {}", m_src);
|
|
return DeprecatedString::formatted("Load {}", m_src);
|
|
@@ -1448,4 +1454,9 @@ DeprecatedString TypeofVariable::to_deprecated_string_impl(Bytecode::Executable
|
|
return DeprecatedString::formatted("TypeofVariable {} ({})", m_identifier, executable.identifier_table->get(m_identifier));
|
|
return DeprecatedString::formatted("TypeofVariable {} ({})", m_identifier, executable.identifier_table->get(m_identifier));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+DeprecatedString ToNumeric::to_deprecated_string_impl(Bytecode::Executable const&) const
|
|
|
|
+{
|
|
|
|
+ return "ToNumeric"sv;
|
|
|
|
+}
|
|
|
|
+
|
|
}
|
|
}
|