code: function define(name, obj) {
      if (wedConfig !== undefined) {
        throw new Error("more than one define");
      }
  
      switch (arguments.length) {
      case 0:
        throw new Error("no arguments to the define!");
      case 1:
        if (typeof name !== "object") {
          throw new Error("if define has only one argument, it must be an " +
                          "object");
        }
        wedConfig = name;
        break;
      default:
        throw new Error("captureConfigObject is designed to capture a " +
                        "maximum of two arguments.");
      }
    }
docs: eslint-disable-next-line no-unused-vars