#include "third_party/blink/renderer/core/streams/promise_handler.h"
namespace blink {
namespace {
void NoopFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&) { … }
v8::Local<v8::Promise> AttemptToReturnDummyPromise(
v8::Local<v8::Context> context,
v8::Local<v8::Promise> original_promise) { … }
}
PromiseHandler::PromiseHandler() = default;
void PromiseHandler::CallRaw(ScriptState* script_state,
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
PromiseHandlerWithValue::PromiseHandlerWithValue() = default;
void PromiseHandlerWithValue::CallRaw(
ScriptState* script_state,
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
v8::Local<v8::Promise> StreamThenPromise(v8::Local<v8::Context> context,
v8::Local<v8::Promise> promise,
ScriptFunction* on_fulfilled,
ScriptFunction* on_rejected) { … }
}