mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
LibJS: Fix copy-paste mistake in GetCapabilitiesExecutor
This commit is contained in:
parent
d5ce24627e
commit
cdf2854fdf
Notes:
sideshowbarker
2024-07-18 05:25:38 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/cdf2854fdf5 Pull-request: https://github.com/SerenityOS/serenity/pull/9554 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/linusg ✅
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user