diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-21 12:49:54 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-21 23:08:49 +0100 |
commit | cdf2854fdf58092ffbb1c706a4f2ace20d660c6c (patch) | |
tree | e33203cfc24fdc73e34cc1fe6136c4ea15688520 /Userland | |
parent | d5ce24627e14c4d4dd85c05d3837399927feba0a (diff) | |
download | serenity-cdf2854fdf58092ffbb1c706a4f2ace20d660c6c.zip |
LibJS: Fix copy-paste mistake in GetCapabilitiesExecutor
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PromiseReaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseReaction.cpp b/Userland/Libraries/LibJS/Runtime/PromiseReaction.cpp index c16b434d68..ecc7a5e7cb 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseReaction.cpp +++ b/Userland/Libraries/LibJS/Runtime/PromiseReaction.cpp @@ -34,7 +34,7 @@ PromiseCapability new_promise_capability(GlobalObject& global_object, Value cons vm.template throw_exception<TypeError>(global_object, ErrorType::GetCapabilitiesExecutorCalledMultipleTimes); return {}; } - if (!promise_capability_functions.resolve.is_undefined()) { + if (!promise_capability_functions.reject.is_undefined()) { vm.template throw_exception<TypeError>(global_object, ErrorType::GetCapabilitiesExecutorCalledMultipleTimes); return {}; } |