| 76 | ScopedNativeCallActivity activity(getAttributingRuntime(callContext.getContext(), _anrAttribution), |
| 77 | _anrAttribution); |
| 78 | JSPromiseOnFulfilled::callCompletionWithValue(callContext.getContext(), |
| 79 | callContext.getParameter(0), |
| 80 | _valueMarshaller, |
| 81 | _callback, |
| 82 | callContext.getExceptionTracker()); |
| 83 | |
| 84 | return callContext.getContext().newUndefined(); |
| 85 | } |
| 86 | |
| 87 | void JSPromiseOnFulfilled::callCompletionWithValue(IJavaScriptContext& jsContext, |
| 88 | const JSValue& value, |
| 89 | const Ref<ValueMarshaller<JSValueRef>>& valueMarshaller, |
| 90 | const Ref<PromiseCallback>& callback, |
| 91 | JSExceptionTracker& exceptionTracker) { |
| 92 | auto resolvedValue = JSValueRef::makeUnretained(jsContext, value); |
| 93 | auto marshalledValue = valueMarshaller->marshall(nullptr, resolvedValue, ReferenceInfoBuilder(), exceptionTracker); |
| 94 |
nothing calls this directly
no test coverage detected