diff --git a/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp b/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp index b6f3f26ad132f7..7c957221400cb8 100644 --- a/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +++ b/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp @@ -121,7 +121,6 @@ void JSIExecutor::initializeRuntime() { const jsi::Value *args, size_t count) { return nativeCallSyncHook(args, count); })); -#if DEBUG runtime_->global().setProperty( *runtime_, "globalEvalWithSourceUrl", @@ -134,7 +133,6 @@ void JSIExecutor::initializeRuntime() { const jsi::Value &, const jsi::Value *args, size_t count) { return globalEvalWithSourceUrl(args, count); })); -#endif if (runtimeInstaller_) { runtimeInstaller_(*runtime_); @@ -527,7 +525,6 @@ Value JSIExecutor::nativeCallSyncHook(const Value *args, size_t count) { return returnValue; } -#if DEBUG Value JSIExecutor::globalEvalWithSourceUrl(const Value *args, size_t count) { if (count != 1 && count != 2) { throw std::invalid_argument( @@ -543,7 +540,6 @@ Value JSIExecutor::globalEvalWithSourceUrl(const Value *args, size_t count) { return runtime_->evaluateJavaScript( std::make_unique(std::move(code)), url); } -#endif void bindNativeLogger(Runtime &runtime, Logger logger) { runtime.global().setProperty( diff --git a/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h b/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h index f06d0d32fd0928..1a8d01f631f14b 100644 --- a/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +++ b/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h @@ -116,9 +116,7 @@ class JSIExecutor : public JSExecutor { void callNativeModules(const jsi::Value &queue, bool isEndOfBatch); jsi::Value nativeCallSyncHook(const jsi::Value *args, size_t count); jsi::Value nativeRequire(const jsi::Value *args, size_t count); -#ifdef DEBUG jsi::Value globalEvalWithSourceUrl(const jsi::Value *args, size_t count); -#endif std::shared_ptr runtime_; std::shared_ptr delegate_;