B2G/gecko/services/common/modules-testing/storageserver.js
/**
   * Insert a BSO in an existing collection.
   */
Insert a BSO in an existing collection.
Insert a BSO in an existing collection .
function insertBSO(username, collection, bso) {
    if (!(username in this.users)) {
      throw new Error("Unknown user.");
    }
    let userCollections = this.users[username].collections;
    if (!(collection in userCollections)) {
      throw new Error("Unknown collection.");
    }
    userCollections[collection].insertBSO(bso);
    return bso;
  }
function insertBSO ( username , collection , bso ) { if ( ! ( username in this . users ) ) { throw new Error ( "Unknown user." ) ; } let userCollections = this . users [ username ] . collections ; if ( ! ( collection in userCollections ) ) { throw new Error ( "Unknown collection." ) ; } userCollections [ collection ] . insertBSO ( bso ) ; return bso ; }
Insert a BSO in an existing collection.
Insert a BSO in an existing collection .