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:
Andy Street 2016-03-03 13:33:14 -08:00 committed by Facebook Github Bot 2
parent 8c25181c44
commit 1b4c23e001
1 changed files with 0 additions and 4 deletions

View File

@ -221,10 +221,6 @@ void JSCExecutor::loadApplicationUnbundle(
}
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
std::string calls = executeJSCallWithJSC(m_context, "flushedQueue", std::vector<folly::dynamic>());
m_bridge->callNativeModules(*this, calls, true);