When creating an Element with a ref from inside of a constructor an error is thrown in production mode, but not in dev mode.

Here is a minimal sample:
https://jsfiddle.net/84v837e9/35/

An error, "Only a ReactOwner can have refs", should happen in dev and production modes.

This is happening in React 15.4
</GeneralContainerComponent>
      </div>
    );
  }
}
/**
 * Render a TestRefsComponent and ensure that the main refs are wired up.
 */
var renderTestRefsComponent = function() {
  var testRefsComponent = ReactTestUtils.renderIntoDocument(
    <TestRefsComponent />,
  );
  expect(testRefsComponent instanceof TestRefsComponent).toBe(true);
  var generalContainer = testRefsComponent.refs.myContainer;
  expect(generalContainer instanceof GeneralContainerComponent).toBe(true);
  var counter = testRefsComponent.refs.myCounter;
  expect(counter instanceof ClickCounter).toBe(true);
  return testRefsComponent;
};
var expectClickLogsLengthToBe = function(instance, length) {
  var clickLogs = ReactTestUtils.scryRenderedDOMComponentsWithClass(
    instance,
    'clickLogDiv',
  );
  expect(clickLogs.length).toBe(length);
  expect(Object.keys(instance.refs.myCounter.refs).length).toBe(length);
};
describe('reactiverefs', () => {
  beforeEach(() => {
    jest.resetModules();