.ToLocalChecked();
.ToLocalChecked();
CHECK(v8_str("r")->Equals(context, a_this).FromJust());
CHECK(v8_str("obj")->Equals(context, a_holder).FromJust());
}
templ->InstanceTemplate()->SetHandler(
LocalContext env;
->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local())
.ToLocalChecked()
->NewInstance(env.local())
.ToLocalChecked())
.FromJust();
CompileRun("obj.a = 'obj'; var r = {a: 'r'}; Reflect.get(obj, 'x', r)");
static Local< FunctionTemplate > New(Isolate *isolate, FunctionCallback callback=nullptr, Local< Value > data=Local< Value >(), Local< Signature > signature=Local< Signature >(), int length=0, ConstructorBehavior behavior=ConstructorBehavior::kAllow, SideEffectType side_effect_type=SideEffectType::kHasSideEffect, const CFunction *c_function=nullptr, uint16_t instance_type=0, uint16_t allowed_receiver_instance_type_range_start=0, uint16_t allowed_receiver_instance_type_range_end=0)
Local< Context > GetCurrentContext()
Definition: v8-local-handle.h:266
friend class Global
Definition: v8-local-handle.h:366
MaybeLocal< Value > GetRealNamedProperty(Local< Context > context, Local< Name > key)
Definition: v8-function-callback.h:206
Local< Object > Holder() const
Definition: v8-function-callback.h:709
ReturnValue< T > GetReturnValue() const
Definition: v8-function-callback.h:731
Local< Object > This() const
Definition: v8-function-callback.h:704
Isolate * GetIsolate() const
Definition: v8-function-callback.h:694
Definition: v8-template.h:751