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;
111#ifdef V8_ENABLE_CHECKS
114 return static_cast<Function*
>(value);
121 static void CheckCast(
Value* obj);
Local< Value > GetDebugName() const
MaybeLocal< UnboundScript > GetUnboundScript() const
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)
Local< Value > GetInferredName() const
static V8_INLINE Function * Cast(Value *value)
V8_WARN_UNUSED_RESULT MaybeLocal< Object > NewInstance(Local< Context > context) const
V8_WARN_UNUSED_RESULT MaybeLocal< String > FunctionProtoToString(Local< Context > context)
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
ScriptOrigin GetScriptOrigin() const
int GetScriptColumnNumber() const
Local< Value > GetBoundFunction() 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[])
int GetScriptLineNumber() const
void(*)(const FunctionCallbackInfo< Value > &info) FunctionCallback
#define V8_WARN_UNUSED_RESULT