Skip to content

Commit

Permalink
Use rt ref
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagiera committed Dec 14, 2022
1 parent 9f37efd commit fbb3110
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Common/cpp/SharedItems/Shareables.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ class JSRuntimeHelper {
// function directly. CallGuard provides a way of capturing exceptions in
// JavaScript and propagating them to the main React Native thread such that
// they can be presented using RN's LogBox.
jsi::Runtime &rt = *uiRuntime_;
#ifdef DEBUG
callGuard->call(*uiRuntime_, function, args...);
callGuard->call(rt, function, args...);
#else
function.asObject(*uiRuntime_)
.asFunction(*uiRuntime_)
.call(*uiRuntime_, args...);
function.asObject(rt).asFunction(rt).call(rt, args...);
#endif
}
};
Expand Down

0 comments on commit fbb3110

Please sign in to comment.