5#ifndef INCLUDE_V8_FUNCTION_H_
6#define INCLUDE_V8_FUNCTION_H_
43 return NewInstance(context, 0,
nullptr);
53 SideEffectType side_effect_type = SideEffectType::kHasSideEffect)
const;
83 int GetScriptLineNumber() const;
88 int GetScriptColumnNumber() const;
94 int GetScriptStartPosition() const;
126#ifdef V8_ENABLE_CHECKS
129 return static_cast<Function*
>(value);
136 static void CheckCast(
Value* obj);
static MaybeLocal< Function > New(Local< Context > context, FunctionCallback callback, Local< Value > data=Local< Value >(), int length=0, ConstructorBehavior behavior=ConstructorBehavior::kAllow, SideEffectType side_effect_type=SideEffectType::kHasSideEffect)
V8_WARN_UNUSED_RESULT MaybeLocal< Object > NewInstance(Local< Context > context) const
static const int kLineOffsetNotFound
V8_WARN_UNUSED_RESULT MaybeLocal< Object > NewInstanceWithSideEffectType(Local< Context > context, int argc, Local< Value > argv[], SideEffectType side_effect_type=SideEffectType::kHasSideEffect) const
void SetName(Local< String > name)
Local< Value > GetName() const
V8_WARN_UNUSED_RESULT MaybeLocal< Object > NewInstance(Local< Context > context, int argc, Local< Value > argv[]) const
V8_WARN_UNUSED_RESULT MaybeLocal< Value > Call(Local< Context > context, Local< Value > recv, int argc, Local< Value > argv[])
void(*)(const FunctionCallbackInfo< Value > &info) FunctionCallback
#define V8_DEPRECATED(message)
#define V8_WARN_UNUSED_RESULT