Skip to content

Commit 2bc248c

Browse files
javachemeta-codesync[bot]
authored andcommitted
Propage startJSSamplingProfiler error (#57587)
Summary: Pull Request resolved: #57587 Adds rethrow in catch blocks when `startJSSamplingProfiler()` fails, preventing the `finally` block from attempting to stop a profiler that was never started. Changelog: [Internal] Reviewed By: thegreatercurve Differential Revision: D112405579 fbshipit-source-id: 4b1cc6746d8ba29df99be57e583ee06ac742c12c
1 parent b33de75 commit 2bc248c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • private/react-native-fantom/runtime

private/react-native-fantom/runtime/setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ function runTest(): Array<TestCaseResult> {
450450
NativeFantom.startJSSamplingProfiler();
451451
} catch (e) {
452452
console.error('Could not start JS sampling profiler', e);
453+
throw e;
453454
}
454455

455456
try {

0 commit comments

Comments
 (0)