Skip to content

Commit

Permalink
Rename jSEngineInstance -> jsEngineInstance (#38909)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #38909

Rename jSEngineInstance -> jsEngineInstance

changelog: [internal] internal

Reviewed By: christophpurrer

Differential Revision: D48051751

fbshipit-source-id: ae96270f9dfa56b39bcc42ea8ac108235695311c
  • Loading branch information
mdvacca authored and facebook-github-bot committed Aug 10, 2023
1 parent 2e5b122 commit e2ef6b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface ReactHostDelegate {
val reactPackages: List<ReactPackage>

/** Object that holds a native reference to the javascript engine */
val jSEngineInstance: JSEngineInstance
val jsEngineInstance: JSEngineInstance

/**
* Bundle loader to use when setting up JS environment. <p>Example:
Expand All @@ -66,7 +66,7 @@ interface ReactHostDelegate {
class ReactHostDelegateBase(
override val jsMainModulePath: String,
override val jSBundleLoader: JSBundleLoader,
override val jSEngineInstance: JSEngineInstance,
override val jsEngineInstance: JSEngineInstance,
override val turboModuleManagerDelegateBuilder:
ReactPackageTurboModuleManagerDelegate.Builder,
override val reactPackages: List<ReactPackage> = emptyList(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void onHostDestroy() {
}
});

JSEngineInstance jsEngineInstance = mDelegate.getJSEngineInstance();
JSEngineInstance jsEngineInstance = mDelegate.getJsEngineInstance();
BindingsInstaller bindingsInstaller = mDelegate.getBindingsInstaller();
// Notify JS if profiling is enabled
boolean isProfiling =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DefaultReactHostDelegate(
override val jsMainModulePath: String,
override val jSBundleLoader: JSBundleLoader,
override val reactPackages: List<ReactPackage> = emptyList(),
override val jSEngineInstance: JSEngineInstance = HermesInstance(),
override val jsEngineInstance: JSEngineInstance = HermesInstance(),
override val bindingsInstaller: BindingsInstaller = DefaultBindingsInstaller(),
private val reactNativeConfig: ReactNativeConfig = ReactNativeConfig.DEFAULT_CONFIG,
private val exceptionHandler: (Exception) -> Unit = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ReactHostDelegateTest {
DefaultReactHostDelegate(
jsMainModulePath = jsMainModulePathMocked,
jSBundleLoader = jsBundleLoader,
jSEngineInstance = hermesInstance,
jsEngineInstance = hermesInstance,
turboModuleManagerDelegateBuilder = turboModuleManagerDelegateBuilderMock)

assertThat(delegate.jsMainModulePath).isEqualTo(jsMainModulePathMocked)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public ReactPackageTurboModuleManagerDelegate.Builder getTurboModuleManagerDeleg
}

@Override
public JSEngineInstance getJSEngineInstance() {
public JSEngineInstance getJsEngineInstance() {
if (mReactHost.getJSEngineResolutionAlgorithm() == JSEngineResolutionAlgorithm.JSC) {
return new JSCInstance();
} else {
Expand Down

0 comments on commit e2ef6b9

Please sign in to comment.