Ejemplo n.º 1
0
 protected override bool OnJSSetProperty(JSObject obj, string propertyName, JSValue value)
 {
     GetBag(obj)[propertyName] = value;
     return(true);
 }
Ejemplo n.º 2
0
 protected override bool OnJSSetProperty(JSObject obj, string propertyName, JSValue value)
 {
     throw new JSErrorException(obj.Context, "IllegalOperationError",
                                "Setting properties on this object is not allowed");
 }