@@ -120,19 +120,17 @@ std::unique_ptr<JSExecutor> JSCExecutorFactory::createJSExecutor(
120
120
std::shared_ptr<ExecutorDelegate> delegate,
121
121
std::shared_ptr<MessageQueueThread> jsQueue) {
122
122
return folly::make_unique<JSCExecutor>(
123
- delegate, jsQueue, m_jscConfig, m_nativeExtensionsProvider );
123
+ delegate, jsQueue, m_jscConfig);
124
124
}
125
125
126
126
JSCExecutor::JSCExecutor (
127
127
std::shared_ptr<ExecutorDelegate> delegate,
128
128
std::shared_ptr<MessageQueueThread> messageQueueThread,
129
- const folly::dynamic& jscConfig,
130
- NativeExtensionsProvider nativeExtensionsProvider) throw (JSException)
129
+ const folly::dynamic& jscConfig) throw (JSException)
131
130
: m_delegate(delegate),
132
131
m_messageQueueThread (messageQueueThread),
133
132
m_nativeModules(delegate ? delegate->getModuleRegistry () : nullptr),
134
- m_jscConfig(jscConfig),
135
- m_nativeExtensionsProvider(nativeExtensionsProvider) {
133
+ m_jscConfig(jscConfig) {
136
134
initOnJSVMThread ();
137
135
138
136
{
@@ -142,12 +140,6 @@ JSCExecutor::JSCExecutor(
142
140
" nativeModuleProxy" ,
143
141
exceptionWrapMethod<&JSCExecutor::getNativeModule>());
144
142
}
145
- if (nativeExtensionsProvider) {
146
- installGlobalProxy (
147
- m_context,
148
- " nativeExtensions" ,
149
- exceptionWrapMethod<&JSCExecutor::getNativeExtension>());
150
- }
151
143
}
152
144
153
145
JSCExecutor::~JSCExecutor () {
@@ -732,17 +724,6 @@ JSValueRef JSCExecutor::getNativeModule(
732
724
return m_nativeModules.getModule (m_context, propertyName);
733
725
}
734
726
735
- JSValueRef JSCExecutor::getNativeExtension (
736
- JSObjectRef object,
737
- JSStringRef propertyName) {
738
- if (m_nativeExtensionsProvider) {
739
- folly::dynamic value =
740
- m_nativeExtensionsProvider (String::ref (m_context, propertyName).str ());
741
- return Value::fromDynamic (m_context, std::move (value));
742
- }
743
- return JSC_JSValueMakeUndefined (m_context);
744
- }
745
-
746
727
JSValueRef JSCExecutor::nativeRequire (
747
728
size_t count,
748
729
const JSValueRef arguments[]) {
0 commit comments