mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibJS+Everywhere: Deprecate Value::to_string_without_side_effects
This commit is contained in:
parent
7fc7d4f8c6
commit
b245300ba1
65 changed files with 168 additions and 168 deletions
|
@ -53,7 +53,7 @@ ThrowCompletionOr<void> Reference::put_value(VM& vm, Value value)
|
|||
|
||||
// d. If succeeded is false and V.[[Strict]] is true, throw a TypeError exception.
|
||||
if (!succeeded && m_strict)
|
||||
return vm.throw_completion<TypeError>(ErrorType::ReferenceNullishSetProperty, m_name, m_base_value.to_string_without_side_effects());
|
||||
return vm.throw_completion<TypeError>(ErrorType::ReferenceNullishSetProperty, m_name, m_base_value.to_deprecated_string_without_side_effects());
|
||||
|
||||
// e. Return unused.
|
||||
return {};
|
||||
|
@ -178,7 +178,7 @@ ThrowCompletionOr<bool> Reference::delete_(VM& vm)
|
|||
|
||||
// e. If deleteStatus is false and ref.[[Strict]] is true, throw a TypeError exception.
|
||||
if (!delete_status && m_strict)
|
||||
return vm.throw_completion<TypeError>(ErrorType::ReferenceNullishDeleteProperty, m_name, m_base_value.to_string_without_side_effects());
|
||||
return vm.throw_completion<TypeError>(ErrorType::ReferenceNullishDeleteProperty, m_name, m_base_value.to_deprecated_string_without_side_effects());
|
||||
|
||||
// f. Return deleteStatus.
|
||||
return delete_status;
|
||||
|
@ -209,7 +209,7 @@ DeprecatedString Reference::to_deprecated_string() const
|
|||
if (m_base_value.is_empty())
|
||||
builder.append("<empty>"sv);
|
||||
else
|
||||
builder.appendff("{}", m_base_value.to_string_without_side_effects());
|
||||
builder.appendff("{}", m_base_value.to_deprecated_string_without_side_effects());
|
||||
break;
|
||||
}
|
||||
builder.append(", ReferencedName="sv);
|
||||
|
@ -224,7 +224,7 @@ DeprecatedString Reference::to_deprecated_string() const
|
|||
if (m_this_value.is_empty())
|
||||
builder.append("<empty>"sv);
|
||||
else
|
||||
builder.appendff("{}", m_this_value.to_string_without_side_effects());
|
||||
builder.appendff("{}", m_this_value.to_deprecated_string_without_side_effects());
|
||||
|
||||
builder.append(" }"sv);
|
||||
return builder.to_deprecated_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue