B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Sets a variable's configurable, enumerable or writable attributes.
   *
   * @param object aVar
   *        The object to set the attributes on.
   * @param object aName
   *        The varialbe name.
   * @param object aFlags
   *        Contains configurable, enumerable or writable flags.
   */
Sets a variable's configurable, enumerable or writable attributes.
@param object aVar
The object to set the attributes on.
@param object aName
The varialbe name.
@param object aFlags
Contains configurable, enumerable or writable flags.
Sets a variable ' s configurable enumerable or writable attributes . @param object aVar The object to set the attributes on . @param object aName The varialbe name . @param object aFlags Contains configurable enumerable or writable flags .
function DVP_setAttributes(aVar, aName, aFlags) {
    if (aFlags) {
      if (!aFlags.configurable) {
        aVar.setAttribute("non-configurable", "");
      }
      if (!aFlags.enumerable) {
        aVar.setAttribute("non-enumerable", "");
      }
      if (!aFlags.writable) {
        aVar.setAttribute("non-writable", "");
      }
    }
    if (aName === "this") {
      aVar.setAttribute("self", "");
    }
    if (aName === "__proto__ ") {
      aVar.setAttribute("proto", "");
    }
  }
function DVP_setAttributes ( aVar , aName , aFlags ) { if ( aFlags ) { if ( ! aFlags . configurable ) { aVar . setAttribute ( "non-configurable" , "" ) ; } if ( ! aFlags . enumerable ) { aVar . setAttribute ( "non-enumerable" , "" ) ; } if ( ! aFlags . writable ) { aVar . setAttribute ( "non-writable" , "" ) ; } } if ( aName === "this" ) { aVar . setAttribute ( "self" , "" ) ; } if ( aName === "__proto__ " ) { aVar . setAttribute ( "proto" , "" ) ; } }
Sets a variable's configurable, enumerable or writable attributes.
Sets a variable ' s configurable enumerable or writable attributes .