diff --git a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java index bb065be4f42e75..7519f2146faf6d 100644 --- a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java +++ b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java @@ -28,10 +28,7 @@ public class HermesExecutor extends JavaScriptExecutor { } HermesExecutor(@Nullable RuntimeConfig config) { - super( - config == null - ? initHybridDefaultConfig() - : initHybrid(config.heapSizeMB, config.es6Proxy)); + super(config == null ? initHybridDefaultConfig() : initHybrid(config.heapSizeMB)); } @Override @@ -50,5 +47,5 @@ public String getName() { private static native HybridData initHybridDefaultConfig(); - private static native HybridData initHybrid(long heapSizeMB, boolean es6Proxy); + private static native HybridData initHybrid(long heapSizeMB); } diff --git a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp index d6cbef092de08a..0e666e328e0223 100644 --- a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp +++ b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp @@ -21,9 +21,7 @@ namespace facebook { namespace react { -static ::hermes::vm::RuntimeConfig makeRuntimeConfig( - jlong heapSizeMB, - bool es6Proxy) { +static ::hermes::vm::RuntimeConfig makeRuntimeConfig(jlong heapSizeMB) { namespace vm = ::hermes::vm; auto gcConfigBuilder = vm::GCConfig::Builder() @@ -40,7 +38,6 @@ static ::hermes::vm::RuntimeConfig makeRuntimeConfig( return vm::RuntimeConfig::Builder() .withGCConfig(gcConfigBuilder.build()) - .withES6Proxy(es6Proxy) .build(); } @@ -69,10 +66,11 @@ class HermesExecutorHolder std::make_unique(installBindings)); } - static jni::local_ref - initHybrid(jni::alias_ref, jlong heapSizeMB, bool es6Proxy) { + static jni::local_ref initHybrid( + jni::alias_ref, + jlong heapSizeMB) { JReactMarker::setLogPerfMarkerIfNeeded(); - auto runtimeConfig = makeRuntimeConfig(heapSizeMB, es6Proxy); + auto runtimeConfig = makeRuntimeConfig(heapSizeMB); return makeCxxInstance(std::make_unique( installBindings, JSIExecutor::defaultTimeoutInvoker, runtimeConfig)); } diff --git a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java index 8300e5e55e0dc0..fec7c457bc8b98 100644 --- a/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java +++ b/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java @@ -10,7 +10,6 @@ /** Holds runtime configuration for a Hermes VM instance (master or snapshot). */ public final class RuntimeConfig { public long heapSizeMB; - public boolean es6Proxy; RuntimeConfig() {}