示例#1
0
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());
}
示例#2
0
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();
}
示例#3
0
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());
}
示例#4
0
void Proxy::onPropertyChanged(Local<String> property, Local<Value> value, const AccessorInfo& info)
{
	onPropertyChangedForProxy(property, value, info.Holder());
}