Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-native/React/CxxModule/RCTCxxUtils.mm
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
return nil;
} @catch (NSException *exception) {
return RCTErrorWithNSException(exception);
} @catch (id exception) {
} @catch (id) {
// This will catch any other ObjC exception, but no C++ exceptions
return RCTErrorWithMessage(@"non-std ObjC Exception");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jint PerformanceTracerCxxInterop::subscribeToTracingStateChanges(
onTracingStateChangedMethod(
callback, static_cast<jboolean>(isTracing));
});
} catch (const std::exception& e) {
} catch (const std::exception&) {
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/ReactCommon/jsi/jsi/test/testlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ TEST_P(JSITest, MicrotasksTest) {
EXPECT_EQ(
rt.global().getProperty(rt, "globalValue").asString(rt).utf8(rt),
"hello world");
} catch (const JSINativeException& ex) {
} catch (const JSINativeException&) {
// queueMicrotask() is unimplemented by some runtimes, ignore such failures.
}
}
Expand Down Expand Up @@ -1550,7 +1550,7 @@ TEST_P(JSITest, ArrayBufferSizeTest) {
try {
// Ensure we can safely write some data to the buffer.
memset(ab.data(rt), 0xab, 10);
} catch (const JSINativeException& ex) {
} catch (const JSINativeException&) {
// data() is unimplemented by some runtimes, ignore such failures.
}

Expand Down
Loading