mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 06:52:23 +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
8599917188
commit
1a47126aa9
1 changed files with 17 additions and 17 deletions
|
@ -45,7 +45,7 @@ private:
|
||||||
/* 1. If value is an abrupt completion, then */ \
|
/* 1. If value is an abrupt completion, then */ \
|
||||||
if (_temporary_try_or_reject_result.is_error()) { \
|
if (_temporary_try_or_reject_result.is_error()) { \
|
||||||
/* a. Perform ? Call(capability.[[Reject]], undefined, « value.[[Value]] »). */ \
|
/* 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]]. */ \
|
/* b. Return capability.[[Promise]]. */ \
|
||||||
return (capability)->promise(); \
|
return (capability)->promise(); \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue