Skip to content

Worklets integration initialization errors are silently swallowed #1549

Description

@OskarEichler

Description

installWorkletsSupport() wraps optional module loading, Nitro proxy boxing, and custom serializer registration in one blanket catch. This is useful when react-native-worklets is absent, but it also silently disables an installed integration when Nitro boxing or Worklets registration fails.

Reproduction

With the Worklets module available, make NitroModules.box or registerCustomSerializable throw during initialization. Importing Nitro completes without surfacing the actionable failure, and Worklets support remains disabled.

Expected behavior

Only optional module absence/loading should use the no-integration fallback; initialization failures after a successful load should propagate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions