mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
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:
parent
988df9cc8c
commit
16559002bf
Notes:
github-actions[bot]
2025-04-14 21:44:43 +00:00
Author: https://github.com/trflynn89
Commit: 16559002bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4338
Reviewed-by: https://github.com/kennethmyhra ✅
1 changed files with 17 additions and 17 deletions
|
@ -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(); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue