@@ -19,7 +19,7 @@ import {captureCommitPhaseError} from './ReactFiberWorkLoop';
1919// TODO: Consider marking the whole bundle instead of these boundaries.
2020
2121const callComponent = {
22- 'react-stack-bottom-frame' : function < Props , Arg , R > (
22+ react_stack_bottom_frame : function < Props , Arg , R > (
2323 Component : ( p : Props , arg : Arg ) = > R ,
2424 props : Props ,
2525 secondArg : Arg ,
@@ -41,7 +41,7 @@ export const callComponentInDEV: <Props, Arg, R>(
4141 secondArg : Arg ,
4242) => R = __DEV__
4343 ? // We use this technique to trick minifiers to preserve the function name.
44- ( callComponent [ 'react-stack-bottom-frame' ] . bind ( callComponent ) : any )
44+ ( callComponent . react_stack_bottom_frame . bind ( callComponent ) : any )
4545 : ( null : any ) ;
4646
4747interface ClassInstance < R > {
@@ -57,7 +57,7 @@ interface ClassInstance<R> {
5757}
5858
5959const callRender = {
60- 'react-stack-bottom-frame' : function < R > (instance: ClassInstance< R > ): R {
60+ react_stack_bottom_frame : function < R > (instance: ClassInstance< R > ): R {
6161 const wasRendering = isRendering ;
6262 setIsRendering ( true ) ;
6363 try {
@@ -72,11 +72,11 @@ const callRender = {
7272export const callRenderInDEV : < R > (instance: ClassInstance< R > ) => R => R =
7373 __DEV__
7474 ? // We use this technique to trick minifiers to preserve the function name.
75- ( callRender [ 'react-stack-bottom-frame' ] . bind ( callRender ) : any )
75+ ( callRender . react_stack_bottom_frame . bind ( callRender ) : any )
7676 : ( null : any ) ;
7777
7878const callComponentDidMount = {
79- 'react-stack-bottom-frame' : function (
79+ react_stack_bottom_frame : function (
8080 finishedWork : Fiber ,
8181 instance : ClassInstance < any > ,
8282 ) : void {
@@ -93,13 +93,13 @@ export const callComponentDidMountInDEV: (
9393 instance : ClassInstance < any > ,
9494) => void = __DEV__
9595 ? // We use this technique to trick minifiers to preserve the function name.
96- ( callComponentDidMount [ 'react-stack-bottom-frame' ] . bind (
96+ ( callComponentDidMount . react_stack_bottom_frame . bind (
9797 callComponentDidMount ,
9898 ) : any )
9999 : ( null : any ) ;
100100
101101const callComponentDidUpdate = {
102- 'react-stack-bottom-frame' : function (
102+ react_stack_bottom_frame : function (
103103 finishedWork : Fiber ,
104104 instance : ClassInstance < any > ,
105105 prevProps : Object ,
@@ -122,13 +122,13 @@ export const callComponentDidUpdateInDEV: (
122122 snaphot : Object ,
123123) => void = __DEV__
124124 ? // We use this technique to trick minifiers to preserve the function name.
125- ( callComponentDidUpdate [ 'react-stack-bottom-frame' ] . bind (
125+ ( callComponentDidUpdate . react_stack_bottom_frame . bind (
126126 callComponentDidUpdate ,
127127 ) : any )
128128 : ( null : any ) ;
129129
130130const callComponentDidCatch = {
131- 'react-stack-bottom-frame' : function (
131+ react_stack_bottom_frame : function (
132132 instance : ClassInstance < any > ,
133133 errorInfo : CapturedValue < mixed > ,
134134 ) : void {
@@ -145,13 +145,13 @@ export const callComponentDidCatchInDEV: (
145145 errorInfo : CapturedValue < mixed > ,
146146) => void = __DEV__
147147 ? // We use this technique to trick minifiers to preserve the function name.
148- ( callComponentDidCatch [ 'react-stack-bottom-frame' ] . bind (
148+ ( callComponentDidCatch . react_stack_bottom_frame . bind (
149149 callComponentDidCatch ,
150150 ) : any )
151151 : ( null : any ) ;
152152
153153const callComponentWillUnmount = {
154- 'react-stack-bottom-frame' : function (
154+ react_stack_bottom_frame : function (
155155 current : Fiber ,
156156 nearestMountedAncestor : Fiber | null ,
157157 instance : ClassInstance < any > ,
@@ -170,13 +170,13 @@ export const callComponentWillUnmountInDEV: (
170170 instance : ClassInstance < any > ,
171171) => void = __DEV__
172172 ? // We use this technique to trick minifiers to preserve the function name.
173- ( callComponentWillUnmount [ 'react-stack-bottom-frame' ] . bind (
173+ ( callComponentWillUnmount . react_stack_bottom_frame . bind (
174174 callComponentWillUnmount ,
175175 ) : any )
176176 : ( null : any ) ;
177177
178178const callCreate = {
179- 'react-stack-bottom-frame' : function (
179+ react_stack_bottom_frame : function (
180180 effect : Effect ,
181181 ) : ( ( ) => void ) | { ...} | void | null {
182182 const create = effect . create ;
@@ -189,11 +189,11 @@ const callCreate = {
189189
190190export const callCreateInDEV : ( effect : Effect ) = > ( ( ) => void ) | void = __DEV__
191191 ? // We use this technique to trick minifiers to preserve the function name.
192- ( callCreate [ 'react-stack-bottom-frame' ] . bind ( callCreate ) : any )
192+ ( callCreate . react_stack_bottom_frame . bind ( callCreate ) : any )
193193 : ( null : any ) ;
194194
195195const callDestroy = {
196- 'react-stack-bottom-frame' : function (
196+ react_stack_bottom_frame : function (
197197 current : Fiber ,
198198 nearestMountedAncestor : Fiber | null ,
199199 destroy : ( ) => void ,
@@ -212,11 +212,11 @@ export const callDestroyInDEV: (
212212 destroy : ( ( ) => void ) | ( ( { ...} ) => void ) ,
213213) = > void = __DEV__
214214 ? // We use this technique to trick minifiers to preserve the function name.
215- ( callDestroy [ 'react-stack-bottom-frame' ] . bind ( callDestroy ) : any )
215+ ( callDestroy . react_stack_bottom_frame . bind ( callDestroy ) : any )
216216 : ( null : any ) ;
217217
218218const callLazyInit = {
219- 'react-stack-bottom-frame' : function ( lazy : LazyComponent < any , any > ) : any {
219+ react_stack_bottom_frame : function ( lazy : LazyComponent < any , any > ) : any {
220220 const payload = lazy . _payload ;
221221 const init = lazy . _init ;
222222 return init ( payload ) ;
@@ -225,5 +225,5 @@ const callLazyInit = {
225225
226226export const callLazyInitInDEV : ( lazy : LazyComponent < any , any > ) => any = __DEV__
227227 ? // We use this technique to trick minifiers to preserve the function name.
228- ( callLazyInit [ 'react-stack-bottom-frame' ] . bind ( callLazyInit ) : any )
228+ ( callLazyInit . react_stack_bottom_frame . bind ( callLazyInit ) : any )
229229 : ( null : any ) ;
0 commit comments