예제 #1
0
 protected override bool OnJSSetProperty(JSObject obj, string propertyName, JSValue value)
 {
     GetBag(obj)[propertyName] = value;
     return(true);
 }
예제 #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");
 }