Remove unused flags for Hermes VM (#47244)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47244

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D65062303

fbshipit-source-id: 7372536643636b8a1923d9e1194ebca45f856e57
This commit is contained in:
Rubén Norte
2024-10-29 06:20:13 -07:00
committed by Facebook GitHub Bot
parent f503fe3f10
commit 5f45f8a71c
@@ -139,18 +139,13 @@ std::unique_ptr<JSRuntime> HermesInstance::createJSRuntime(
gcConfig.withAllocInYoung(false).withRevertToYGAtTTI(true);
}
int64_t vmExperimentFlags = reactNativeConfig
? reactNativeConfig->getInt64("ios_hermes:vm_experiment_flags")
: 0;
::hermes::vm::RuntimeConfig::Builder runtimeConfigBuilder =
::hermes::vm::RuntimeConfig::Builder()
.withGCConfig(gcConfig.build())
.withEnableSampleProfiling(true)
.withMicrotaskQueue(
ReactNativeFeatureFlags::enableBridgelessArchitecture() &&
!ReactNativeFeatureFlags::disableEventLoopOnBridgeless())
.withVMExperimentFlags(vmExperimentFlags);
!ReactNativeFeatureFlags::disableEventLoopOnBridgeless());
if (crashManager) {
runtimeConfigBuilder.withCrashMgr(crashManager);