1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +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:
Timothy Flynn 2023-01-28 17:45:29 -05:00 committed by Linus Groh
parent 2b5054c903
commit 109b190a19

View file

@ -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; \
} \