void Proxy::onPropertyChanged(const v8::FunctionCallbackInfo<v8::Value>& args) { Isolate* isolate = args.GetIsolate(); if (args.Length() < 1) { JSException::Error(isolate, "Requires property name as first parameters."); return; } Local<String> name = args.Data()->ToString(isolate); Local<Value> value = args[0]; onPropertyChangedForProxy(isolate, name, value, args.Holder()); }
Handle<Value> Proxy::onPropertyChanged(const Arguments& args) { if (args.Length() < 1) { return JSException::Error("Requires property name as first parameters."); } Local<String> name = args.Data()->ToString(); Local<Value> value = args[0]; onPropertyChangedForProxy(name, value, args.Holder()); return Undefined(); }
void Proxy::onPropertyChanged(Local<Name> property, Local<Value> value, const v8::PropertyCallbackInfo<void>& info) { Isolate* isolate = info.GetIsolate(); onPropertyChangedForProxy(isolate, property->ToString(isolate), value, info.Holder()); }
void Proxy::onPropertyChanged(Local<String> property, Local<Value> value, const AccessorInfo& info) { onPropertyChangedForProxy(property, value, info.Holder()); }