code: function _loop(prop) {
        if (!Object.prototype.hasOwnProperty.call(location, prop)) {
          return 'continue';
        }
  
        Object.defineProperty(stateWithLocation, prop, {
          get: function get() {
            process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(false, 'Accessing location properties directly from the first argument to `getComponent`, `getComponents`, `getChildRoutes`, and `getIndexRoute` is deprecated. That argument is now the router state (`nextState` or `partialNextState`) rather than the location. To access the location, use `nextState.location` or `partialNextState.location`.') : void 0;
            return location[prop];
          }
        });
      }
docs: I don't use deprecateObjectProperties here because I want to keep the same code path between development and production, in that we just assign extra properties to the copy of the state object in both cases.