public void SetProperty(string propertyName, JSValue value, JSPropertyAttribute attributes) { var exception = IntPtr.Zero; var property = JSString.New(propertyName); try { JSObjectSetProperty(Context.Raw, Raw, property, value.Raw, attributes, ref exception); JSException.Proxy(Context, exception); } finally { property.Release(); } }
public JSStaticFunctionAttribute(string name, JSPropertyAttribute attributes) { Name = name; Attributes = attributes; }
private static extern void JSObjectSetProperty(IntPtr ctx, IntPtr obj, JSString propertyName, IntPtr value, JSPropertyAttribute attributes, ref IntPtr exception);
public void SetProperty (string propertyName, JSValue value, JSPropertyAttribute attributes) { var exception = IntPtr.Zero; var property = JSString.New (propertyName); try { JSObjectSetProperty (Context.Raw, Raw, property, value.Raw, attributes, ref exception); JSException.Proxy (Context, exception); } finally { property.Release (); } }
private static extern void JSObjectSetProperty (IntPtr ctx, IntPtr obj, JSString propertyName, IntPtr value, JSPropertyAttribute attributes, ref IntPtr exception);