From 109b190a19e55f407521de14cd1f984ae61d77bf Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 28 Jan 2023 17:45:29 -0500 Subject: [PATCH] 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. --- Userland/Libraries/LibJS/Runtime/Completion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Completion.h b/Userland/Libraries/LibJS/Runtime/Completion.h index 6c0e51c346..294938a8e6 100644 --- a/Userland/Libraries/LibJS/Runtime/Completion.h +++ b/Userland/Libraries/LibJS/Runtime/Completion.h @@ -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(_completion.value()->as_object())); \ + VERIFY(::AK::is(_completion.value()->as_object())); \ \ return _completion; \ } \