LibJS: Fully qualify use of js_undefined in TRY_OR_REJECT macro

This allows this macro to be used in LibWeb.
This commit is contained in:
Timothy Flynn 2025-04-12 09:58:08 -04:00 committed by Tim Flynn
commit 16559002bf
Notes: github-actions[bot] 2025-04-14 21:44:43 +00:00

View file

@ -45,7 +45,7 @@ private:
/* 1. If value is an abrupt completion, then */ \
if (_temporary_try_or_reject_result.is_error()) { \
/* a. Perform ? Call(capability.[[Reject]], undefined, « value.[[Value]] »). */ \
CALL_CHECK(JS::call(vm, *(capability)->reject(), js_undefined(), _temporary_try_or_reject_result.release_error().value())); \
CALL_CHECK(JS::call(vm, *(capability)->reject(), JS::js_undefined(), _temporary_try_or_reject_result.release_error().value())); \
\
/* b. Return capability.[[Promise]]. */ \
return (capability)->promise(); \