2019-10-16 20:03:47 +03:00
|
|
|
/*
|
2019-01-16 21:21:09 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "JSCExecutorFactory.h"
|
|
|
|
|
|
|
|
#import <jsi/JSCRuntime.h>
|
|
|
|
|
2020-03-09 08:58:01 +03:00
|
|
|
#import <memory>
|
2019-10-22 22:19:37 +03:00
|
|
|
|
2019-01-16 21:21:09 +03:00
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
std::unique_ptr<JSExecutor> JSCExecutorFactory::createJSExecutor(
|
2019-03-25 19:08:47 +03:00
|
|
|
std::shared_ptr<ExecutorDelegate> delegate,
|
2020-03-09 08:58:01 +03:00
|
|
|
std::shared_ptr<MessageQueueThread> __unused jsQueue)
|
|
|
|
{
|
2019-10-22 22:19:37 +03:00
|
|
|
return std::make_unique<JSIExecutor>(
|
2020-08-27 11:16:30 +03:00
|
|
|
facebook::jsc::makeJSCRuntime(), delegate, JSIExecutor::defaultTimeoutInvoker, runtimeInstaller_);
|
2019-01-16 21:21:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|