From ceff2e8c3778408d45335a86bc3237a13dbc7a21 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 20 Mar 2025 13:08:29 -0700 Subject: [PATCH] Update JavaScriptContextHolder documentation to not mention CatlaystInstance (#50163) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50163 Update JavaScriptContextHolder documentation to not mention CatlaystInstance changelog: [internal] internal Reviewed By: NickGerleman Differential Revision: D71508657 fbshipit-source-id: 379be65c8a4afdfb0ed994fd1189b1285c246eec --- .../com/facebook/react/bridge/JavaScriptContextHolder.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptContextHolder.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptContextHolder.kt index 322845b53ad..87bb7eee8f7 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptContextHolder.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaScriptContextHolder.kt @@ -10,9 +10,10 @@ package com.facebook.react.bridge import androidx.annotation.GuardedBy /** - * Wrapper for JavaScriptContext native pointer. CatalystInstanceImpl creates this on demand, and - * will call clear() before destroying the VM. People who need the raw JavaScriptContext pointer can - * synchronize on this wrapper object to guarantee that it will not be destroyed. + * Wrapper for JavaScriptContext native pointer. This object is creates on demand as part of the + * initialization of React native, and will call clear() before destroying the VM. People who need + * the raw JavaScriptContext pointer can synchronize on this wrapper object to guarantee that it + * will not be destroyed. */ public class JavaScriptContextHolder public constructor(@field:GuardedBy("this") private var context: Long) {