LibJS: Demote VERIFYs in Completion() to ASSERT

These were *extremely* hot in profiles (noticed when looking at
disassembly).

Now that we've made the special empty JS::Value much harder to create
accidentally, we can feel better about turning these into ASSERT and
catching them in debug builds.
This commit is contained in:
Andreas Kling 2025-04-04 23:23:39 +02:00 committed by Andreas Kling
commit b05b9378ed
Notes: github-actions[bot] 2025-04-05 09:21:22 +00:00

View file

@ -64,8 +64,8 @@ public:
: m_type(type)
, m_value(value)
{
VERIFY(type != Type::Empty);
VERIFY(!value.is_special_empty_value());
ASSERT(type != Type::Empty);
ASSERT(!value.is_special_empty_value());
}
Completion(ThrowCompletionOr<Value> const&);