code: function registerModules() {
      // Dynamic module loading is no longer supported for simplicity.
      // Module is free to load any of its resources dynamically.
      // Or an extension can provide dynamic module loading capabilities as needed.
      if (_scalejs2.default.isApplicationRunning()) {
          throw new Error('Can\'t register module since the application is already running.', 'Dynamic module loading is not supported.');
      }
  
      Array.prototype.push.apply(moduleRegistrations, toArray(arguments).filter(function (m) {
          return m;
      }));
  }
docs: Registers a series of modules to the application
  
  @param {Function|Object} [module...] modules to register
  @memberOf application
   
  Application manages the life cycle of modules.
  @namespace scalejs.application
  @module application
   /*global define