Пример #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");
 }