B2G/gecko/services/common/modules-testing/bagheeraserver.js
/**
   * Create a namespace in the server.
   *
   * The namespace will initially be empty.
   *
   * @param ns
   *        (string) The name of the namespace to create.
   */
Create a namespace in the server.
The namespace will initially be empty.

@param ns
(string) The name of the namespace to create.
Create a namespace in the server . The namespace will initially be empty . @param ns ( string ) The name of the namespace to create .
function createNamespace(ns) {
    if (ns in this.namespaces) {
      throw new Error("Namespace already exists: " + ns);
    }
    this.namespaces[ns] = {};
  }
function createNamespace ( ns ) { if ( ns in this . namespaces ) { throw new Error ( "Namespace already exists: " + ns ) ; } this . namespaces [ ns ] = { } ; }
Create a namespace in the server.
Create a namespace in the server .