function disableSetters(object, objectName, propertyNames, opt_messageSuffix) {
  $Array.forEach(propertyNames, function(propertyName) {
    logging.DCHECK($Object.getOwnPropertyDescriptor(object, propertyName),
                   objectName + ': ' + propertyName);
    var stub = generateDisabledMethodStub(objectName + '.' + propertyName,
                                          opt_messageSuffix);
    $Object.defineProperty(object, propertyName, {
      configurable: false,
      enumerable: false,
      get: function() {
        return;
      },
      set: stub
    });
  });
}
/**
 * Replaces the given properties of the passed in object with stubs that log
 * 'not available' warnings to the console when set.
 *
 * @param {Object} object The object with properties to disable. The prototype
 *     is preferred.
 * @param {string} objectName The display name to use in the error message
 *     thrown by the setter stub (this is the name that the object is commonly
 *     referred to by web developers, e.g. "document" instead of
 *     "HTMLDocument").
 * @param {Array<string>} propertyNames names of properties to disable.
 */
Replaces the given properties of the passed in object with stubs that log
'not available' warnings to the console when set.

@param {Object} object The object with properties to disable. The prototype
is preferred.
@param {string} objectName The display name to use in the error message
thrown by the setter stub (this is the name that the object is commonly
referred to by web developers, e.g. "document" instead of
"HTMLDocument").
@param {Array} propertyNames names of properties to disable.
Replaces the given properties of the passed in object with stubs that log ' not available ' warnings to the console when set . @param { Object } object The object with properties to disable . The prototype is preferred . @param { string } objectName The display name to use in the error message thrown by the setter stub ( this is the name that the object is commonly referred to by web developers e . g . " document " instead of " HTMLDocument " ) . @param { Array } propertyNames names of properties to disable .
function disableSetters(object, objectName, propertyNames, opt_messageSuffix) {
  $Array.forEach(propertyNames, function(propertyName) {
    logging.DCHECK($Object.getOwnPropertyDescriptor(object, propertyName),
                   objectName + ': ' + propertyName);
    var stub = generateDisabledMethodStub(objectName + '.' + propertyName,
                                          opt_messageSuffix);
    $Object.defineProperty(object, propertyName, {
      configurable: false,
      enumerable: false,
      get: function() {
        return;
      },
      set: stub
    });
  });
}
function disableSetters ( object , objectName , propertyNames , opt_messageSuffix ) { $Array . forEach ( propertyNames , function ( propertyName ) { logging . DCHECK ( $Object . getOwnPropertyDescriptor ( object , propertyName ) , objectName + ': ' + propertyName ) ; var stub = generateDisabledMethodStub ( objectName + '.' + propertyName , opt_messageSuffix ) ; $Object . defineProperty ( object , propertyName , { configurable : false , enumerable : false , get : function ( ) { return ; } , set : stub } ) ; } ) ; }
Replaces the given properties of the passed in object with stubs that log
 'not available' warnings to the console when set.
Replaces the given properties of the passed in object with stubs that log ' not available ' warnings to the console when set .