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:
parent
77b3f86d89
commit
036199d3f7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue