diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PromiseCapability.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PromiseCapability.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseCapability.h b/Userland/Libraries/LibJS/Runtime/PromiseCapability.h index 41c4b81170..a5eb801f48 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseCapability.h +++ b/Userland/Libraries/LibJS/Runtime/PromiseCapability.h @@ -43,7 +43,7 @@ private: // 27.2.1.1.1 IfAbruptRejectPromise ( value, capability ), https://tc39.es/ecma262/#sec-ifabruptrejectpromise #define __TRY_OR_REJECT(vm, capability, expression, CALL_CHECK) \ ({ \ - auto _temporary_try_or_reject_result = (expression); \ + auto&& _temporary_try_or_reject_result = (expression); \ /* 1. If value is an abrupt completion, then */ \ if (_temporary_try_or_reject_result.is_error()) { \ /* a. Perform ? Call(capability.[[Reject]], undefined, « value.[[Value]] »). */ \ @@ -69,7 +69,7 @@ private: // 27.2.1.1.1 IfAbruptRejectPromise ( value, capability ), https://tc39.es/ecma262/#sec-ifabruptrejectpromise #define TRY_OR_REJECT_WITH_VALUE(vm, capability, expression) \ ({ \ - auto _temporary_try_or_reject_result = (expression); \ + auto&& _temporary_try_or_reject_result = (expression); \ /* 1. If value is an abrupt completion, then */ \ if (_temporary_try_or_reject_result.is_error()) { \ /* a. Perform ? Call(capability.[[Reject]], undefined, « value.[[Value]] »). */ \ |