Example #1
0
        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;
 }
 public JSStaticFunctionAttribute(string name, JSPropertyAttribute attributes)
 {
     Name = name;
     Attributes = attributes;
 }
Example #4
0
 private static extern void JSObjectSetProperty(IntPtr ctx, IntPtr obj, JSString propertyName,
                                                IntPtr value, JSPropertyAttribute attributes, ref IntPtr exception);
Example #5
0
 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 ();
     }
 }
Example #6
0
 private static extern void JSObjectSetProperty (IntPtr ctx, IntPtr obj, JSString propertyName,
     IntPtr value, JSPropertyAttribute attributes, ref IntPtr exception);