mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:37:35 +00:00
AK+LibJS: Remove null state from DeprecatedFlyString :^)
This commit is contained in:
parent
026c1caba0
commit
8ac0e3f0e5
7 changed files with 25 additions and 28 deletions
|
@ -1261,7 +1261,6 @@ Completion ECMAScriptFunctionObject::ordinary_call_evaluate_body()
|
|||
|
||||
void ECMAScriptFunctionObject::set_name(DeprecatedFlyString const& name)
|
||||
{
|
||||
VERIFY(!name.is_null());
|
||||
auto& vm = this->vm();
|
||||
m_name = name;
|
||||
m_name_string = PrimitiveString::create(vm, m_name);
|
||||
|
|
|
@ -69,7 +69,6 @@ public:
|
|||
: m_type(Type::String)
|
||||
, m_string(DeprecatedFlyString(string))
|
||||
{
|
||||
VERIFY(!m_string.is_null());
|
||||
}
|
||||
|
||||
PropertyKey(DeprecatedFlyString string, StringMayBeNumber string_may_be_number = StringMayBeNumber::Yes)
|
||||
|
@ -77,7 +76,6 @@ public:
|
|||
, m_type(Type::String)
|
||||
, m_string(move(string))
|
||||
{
|
||||
VERIFY(!m_string.is_null());
|
||||
}
|
||||
|
||||
PropertyKey(NonnullGCPtr<Symbol> symbol)
|
||||
|
|
|
@ -33,7 +33,6 @@ public:
|
|||
StringOrSymbol(DeprecatedFlyString const& string)
|
||||
: m_string(string)
|
||||
{
|
||||
VERIFY(!string.is_null());
|
||||
}
|
||||
|
||||
~StringOrSymbol()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue