chromium/third_party/blink/renderer/bindings/core/v8/script_promise_resolver.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"

#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/bindings/core/v8/capture_source_location.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/probe/core_probes.h"
#include "third_party/blink/renderer/platform/bindings/source_location.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

#if DCHECK_IS_ON()
#include "base/debug/alias.h"
#include "components/crash/core/common/crash_key.h"
#endif

namespace blink {

ScriptPromiseResolverBase::ScriptPromiseResolverBase(
    ScriptState* script_state,
    const ExceptionContext& exception_context)
    :{}

ScriptPromiseResolverBase::~ScriptPromiseResolverBase() = default;

#if DCHECK_IS_ON()
void ScriptPromiseResolverBase::Dispose() {}
#endif

void ScriptPromiseResolverBase::Reject(DOMException* value) {}

void ScriptPromiseResolverBase::Reject(v8::Local<v8::Value> value) {}

void ScriptPromiseResolverBase::Reject(const ScriptValue& value) {}

void ScriptPromiseResolverBase::Reject(const char* value) {}

void ScriptPromiseResolverBase::Reject(bool value) {}

void ScriptPromiseResolverBase::RejectWithDOMException(
    DOMExceptionCode exception_code,
    const String& message) {}

void ScriptPromiseResolverBase::RejectWithSecurityError(
    const String& sanitized_message,
    const String& unsanitized_message) {}

void ScriptPromiseResolverBase::RejectWithTypeError(const String& message) {}

void ScriptPromiseResolverBase::RejectWithRangeError(const String& message) {}

void ScriptPromiseResolverBase::RejectWithWasmCompileError(
    const String& message) {}

void ScriptPromiseResolverBase::Detach() {}

void ScriptPromiseResolverBase::NotifyResolveOrReject() {}

void ScriptPromiseResolverBase::ResolveOrRejectImmediately() {}

void ScriptPromiseResolverBase::ScheduleResolveOrReject() {}

void ScriptPromiseResolverBase::ResolveOrRejectDeferred() {}

void ScriptPromiseResolverBase::Trace(Visitor* visitor) const {}

ExecutionContext* ScriptPromiseResolverBase::GetExecutionContext() {}

}  // namespace blink