Change the order between function declaration and object assignment (#8895)
This fixes #8894
António Nuno Monteiro committed
Feb 6, 2017 at 17:02 UTC
43130597021cbf9332675f4ca53e4f49c7001ca1
1 file changed
+8
-7
src/renderers/shared/stack/reconciler/instantiateReactComponent.js
+8
-7
@@ -23,13 +23,6 @@ var warning = require('warning');
23
var ReactCompositeComponentWrapper = function(element) {
24
this.construct(element);
25
};
26
-Object.assign(
27
- ReactCompositeComponentWrapper.prototype,
28
- ReactCompositeComponent,
29
- {
30
- _instantiateReactComponent: instantiateReactComponent,
31
- }
32
-);
26
27
function getDeclarationErrorAddendum(owner) {
28
if (owner) {
@@ -157,4 +150,12 @@ function instantiateReactComponent(node, shouldHaveDebugID) {
150
return instance;
151
}
152
153
+Object.assign(
154
+ ReactCompositeComponentWrapper.prototype,
155
+ ReactCompositeComponent,
156
+ {
157
+ _instantiateReactComponent: instantiateReactComponent,
158
+ }
159
+);
160
+
161
module.exports = instantiateReactComponent;