(name, source, ownerFn)
| 981 | var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; |
| 982 | var prefix; |
| 983 | function describeBuiltInComponentFrame(name, source, ownerFn) { |
| 984 | { |
| 985 | if (prefix === undefined) { |
| 986 | // Extract the VM specific prefix used by each line. |
| 987 | try { |
| 988 | throw Error(); |
| 989 | } catch (x) { |
| 990 | var match = x.stack.trim().match(/\n( *(at )?)/); |
| 991 | prefix = match && match[1] || ''; |
| 992 | } |
| 993 | } // We use the prefix to ensure our stacks line up with native stack frames. |
| 994 | |
| 995 | |
| 996 | return '\n' + prefix + name; |
| 997 | } |
| 998 | } |
| 999 | var reentry = false; |
| 1000 | var componentFrameCache; |
| 1001 |
no test coverage detected
searching dependent graphs…