Skip to content

Commit 3ff4ab2

Browse files
NSProgrammermeta-codesync[bot]
authored andcommitted
Fix missing enum values in switch statements (#54342)
Summary: Pull Request resolved: #54342 `-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present. This helps alert developers when they add an enum value of all the switch statements that need updating. These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc` ## Changelog: [General] [Fixed] - Add missing value to switch for `-Wswitch-enum` builds Differential Revision: D85835952 fbshipit-source-id: e56c45895a63325e565315a39ea59df769c4a3ad
1 parent ae4d79d commit 3ff4ab2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-native/ReactCommon/jsc/JSCRuntime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,7 @@ jsi::Value JSCRuntime::createValue(JSValueRef value) const {
15231523
}
15241524
case kJSTypeSymbol:
15251525
return jsi::Value(createSymbol(value));
1526+
case kJSTypeBigInt:
15261527
default:
15271528
// WHAT ARE YOU
15281529
abort();

0 commit comments

Comments
 (0)