[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-10-21 23:48:31 +00:00
committed by GitHub
parent b87f1271eb
commit 9d4ec5a03a

View File

@@ -966,7 +966,7 @@ JSC_DEFINE_HOST_FUNCTION(jsMockFunctionCall, (JSGlobalObject * lexicalGlobalObje
}
case JSMockImplementation::Kind::RejectedValue: {
JSValue rejectedPromise = JSC::JSPromise::rejectedPromise(globalObject, impl->underlyingValue.get());
RETURN_IF_EXCEPTION(scope, { });
RETURN_IF_EXCEPTION(scope, {});
setReturnValue(createMockResult(vm, globalObject, "return"_s, rejectedPromise));
return JSValue::encode(rejectedPromise);
}