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