WebWorkers: Update WebWorker sample to use networking/timers
Summary: Updates the sample to use native modules. Differential Revision: D2932319 fb-gh-sync-id: 9dc12789839ec2d65e98205508d958d0c8c5b46e shipit-source-id: 9dc12789839ec2d65e98205508d958d0c8c5b46e
This commit is contained in:
parent
8c25181c44
commit
1b4c23e001
|
@ -221,10 +221,6 @@ void JSCExecutor::loadApplicationUnbundle(
|
||||||
}
|
}
|
||||||
|
|
||||||
void JSCExecutor::flush() {
|
void JSCExecutor::flush() {
|
||||||
if (m_owner != nullptr) {
|
|
||||||
// Web workers don't support native modules yet
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// TODO: Make this a first class function instead of evaling. #9317773
|
// TODO: Make this a first class function instead of evaling. #9317773
|
||||||
std::string calls = executeJSCallWithJSC(m_context, "flushedQueue", std::vector<folly::dynamic>());
|
std::string calls = executeJSCallWithJSC(m_context, "flushedQueue", std::vector<folly::dynamic>());
|
||||||
m_bridge->callNativeModules(*this, calls, true);
|
m_bridge->callNativeModules(*this, calls, true);
|
||||||
|
|
Loading…
Reference in New Issue