| 109 | auto resolvedValue = JSValueRef::makeUnretained(callContext.getContext(), callContext.getParameter(0)); |
| 110 | auto error = convertJSErrorToValdiError(callContext.getContext(), resolvedValue, nullptr); |
| 111 | _callback->onFailure(std::move(error)); |
| 112 | |
| 113 | return callContext.getContext().newUndefined(); |
| 114 | } |
| 115 | |
| 116 | PromiseExecutor::PromiseExecutor() = default; |