mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibJS: Fully qualify the use of AK::is in MUST_OR_THROW_OOM
This is to allow using this macro in contexts that have defined `is` already. For example, in ObjectConstructor, there is a native function `is` which would trip up the compiler without this change.
This commit is contained in:
parent
2b5054c903
commit
109b190a19
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ namespace JS {
|
|||
/* We can't explicitly check for OOM because InternalError does not store the ErrorType */ \
|
||||
VERIFY(_completion.value().has_value()); \
|
||||
VERIFY(_completion.value()->is_object()); \
|
||||
VERIFY(is<JS::InternalError>(_completion.value()->as_object())); \
|
||||
VERIFY(::AK::is<JS::InternalError>(_completion.value()->as_object())); \
|
||||
\
|
||||
return _completion; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue