mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
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:
parent
3cf50539ec
commit
b05b9378ed
Notes:
github-actions[bot]
2025-04-05 09:21:22 +00:00
Author: https://github.com/awesomekling
Commit: b05b9378ed
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4232
1 changed files with 2 additions and 2 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue