(current)
| 23289 | } |
| 23290 | |
| 23291 | function safelyDetachRef(current) { |
| 23292 | var ref = current.ref; |
| 23293 | |
| 23294 | if (ref !== null) { |
| 23295 | if (typeof ref === 'function') { |
| 23296 | { |
| 23297 | invokeGuardedCallback(null, ref, null, null); |
| 23298 | |
| 23299 | if (hasCaughtError()) { |
| 23300 | var refError = clearCaughtError(); |
| 23301 | captureCommitPhaseError(current, refError); |
| 23302 | } |
| 23303 | } |
| 23304 | } else { |
| 23305 | ref.current = null; |
| 23306 | } |
| 23307 | } |
| 23308 | } |
| 23309 | |
| 23310 | function safelyCallDestroy(current, destroy) { |
| 23311 | { |
no test coverage detected