mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
LibJS: Fix copy-paste mistake in GetCapabilitiesExecutor
This commit is contained in:
parent
d5ce24627e
commit
cdf2854fdf
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ PromiseCapability new_promise_capability(GlobalObject& global_object, Value cons
|
||||||
vm.template throw_exception<TypeError>(global_object, ErrorType::GetCapabilitiesExecutorCalledMultipleTimes);
|
vm.template throw_exception<TypeError>(global_object, ErrorType::GetCapabilitiesExecutorCalledMultipleTimes);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
if (!promise_capability_functions.resolve.is_undefined()) {
|
if (!promise_capability_functions.reject.is_undefined()) {
|
||||||
vm.template throw_exception<TypeError>(global_object, ErrorType::GetCapabilitiesExecutorCalledMultipleTimes);
|
vm.template throw_exception<TypeError>(global_object, ErrorType::GetCapabilitiesExecutorCalledMultipleTimes);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue