Skip to content

Commit

Permalink
[android] Update ReactCommon
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed May 28, 2020
1 parent 6bf3082 commit a40e961
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions android/ReactCommon/jsi/JSCRuntime.cpp
Expand Up @@ -319,15 +319,6 @@ JSStringRef getIsArrayString() {
#endif
} // namespace

// std::string utility
namespace {
std::string to_string(void* value) {
std::ostringstream ss;
ss << value;
return ss.str();
}
} // namespace

JSCRuntime::JSCRuntime()
: JSCRuntime(JSGlobalContextCreateInGroup(nullptr, nullptr)) {
JSGlobalContextRelease(ctx_);
Expand Down Expand Up @@ -405,7 +396,7 @@ jsi::Object JSCRuntime::global() {

std::string JSCRuntime::description() {
if (desc_.empty()) {
desc_ = std::string("<JSCRuntime@") + to_string(this) + ">";
desc_ = std::string("<JSCRuntime@") + std::to_string(reinterpret_cast<std::uintptr_t>(this)) + ">";
}
return desc_;
}
Expand Down
11 changes: 1 addition & 10 deletions android/versioned-react-native/ReactCommon/jsi/JSCRuntime.cpp
Expand Up @@ -319,15 +319,6 @@ JSStringRef getIsArrayString() {
#endif
} // namespace

// std::string utility
namespace {
std::string to_string(void* value) {
std::ostringstream ss;
ss << value;
return ss.str();
}
} // namespace

JSCRuntime::JSCRuntime()
: JSCRuntime(JSGlobalContextCreateInGroup(nullptr, nullptr)) {
JSGlobalContextRelease(ctx_);
Expand Down Expand Up @@ -405,7 +396,7 @@ jsi::Object JSCRuntime::global() {

std::string JSCRuntime::description() {
if (desc_.empty()) {
desc_ = std::string("<JSCRuntime@") + to_string(this) + ">";
desc_ = std::string("<JSCRuntime@") + std::to_string(reinterpret_cast<std::uintptr_t>(this)) + ">";
}
return desc_;
}
Expand Down

0 comments on commit a40e961

Please sign in to comment.