Use std::string in folly::dynamic

Reviewed By: joeg, snarkmaster

Differential Revision: D3189410

fb-gh-sync-id: 9bb9090ca6012ac32ba9fb79041b26ec4888781f
fbshipit-source-id: 9bb9090ca6012ac32ba9fb79041b26ec4888781f
This commit is contained in:
Pavlo Kushnir 2016-04-26 02:27:37 -07:00 committed by Facebook Github Bot 2
parent 77b3f86d89
commit 036199d3f7
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ static std::string executeJSCallWithJSC(
// Evaluate script with JSC
folly::dynamic jsonArgs(arguments.begin(), arguments.end());
auto js = folly::to<folly::fbstring>(
auto js = folly::to<std::string>(
"__fbBatchedBridge.", methodName, ".apply(null, ",
folly::toJson(jsonArgs), ")");
auto result = evaluateScript(ctx, String(js.c_str()), nullptr);