summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-21 12:49:54 -0400
committerLinus Groh <mail@linusgroh.de>2021-08-21 23:08:49 +0100
commitcdf2854fdf58092ffbb1c706a4f2ace20d660c6c (patch)
treee33203cfc24fdc73e34cc1fe6136c4ea15688520 /Userland
parentd5ce24627e14c4d4dd85c05d3837399927feba0a (diff)
downloadserenity-cdf2854fdf58092ffbb1c706a4f2ace20d660c6c.zip
LibJS: Fix copy-paste mistake in GetCapabilitiesExecutor
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibJS/Runtime/PromiseReaction.cpp2
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 {};
}