chromium/third_party/blink/renderer/bindings/core/v8/script_function.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_function.h"

#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"

namespace blink {

namespace {

void InstallCallableHolderTemplate(v8::Isolate*,
                                   const DOMWrapperWorld&,
                                   v8::Local<v8::Template> interface_template) {}

const WrapperTypeInfo callable_holder_info =;

}  // namespace

class CORE_EXPORT CallableHolder final : public ScriptWrappable {};

// The generated bindings normally take care of initializing
// `wrappable_type_info_`, but CallableHolder doesn't have generated bindings,
// so this has to be done manually.
const WrapperTypeInfo& CallableHolder::wrapper_type_info_ =;

ScriptValue ScriptFunction::Callable::Call(ScriptState*, ScriptValue) {}

void ScriptFunction::Callable::CallRaw(
    ScriptState* script_state,
    const v8::FunctionCallbackInfo<v8::Value>& args) {}

ScriptFunction::ScriptFunction(ScriptState* script_state, Callable* callable)
    :{}

}  // namespace blink