Skip to content

Commit

Permalink
fix(tm-android): TM SyncVoidKind methods throws JSError
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Oct 11, 2023
1 parent 8b88883 commit 8548657
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,13 +738,10 @@ jsi::Value JavaTurboModule::invokeJavaMethod(
case VoidKind: {
if (shouldVoidMethodsExecuteSync_) {
env->CallVoidMethodA(instance, methodID, jargs.data());
checkJNIErrorForMethodCall();

TMPL::syncMethodCallExecutionEnd(moduleName, methodName);
TMPL::syncMethodCallEnd(moduleName, methodName);
try {
FACEBOOK_JNI_THROW_PENDING_EXCEPTION();
} catch (...) {
throw;
}
return jsi::Value::undefined();
}

Expand Down

0 comments on commit 8548657

Please sign in to comment.