Skip to content

unhandledrejection: window.performance.now.bind is not a function #1962

Description

@Merciful12

WatermelonDB crashes on web init when window.performance.now exists but is not a function.

The error happens in src/utils/common/devMeasureTime/index.js on this code path:

return window.performance.now.bind(window.performance)

Environment:

  • @nozbe/watermelondb 0.27.1
  • web app
  • LokiJSAdapter

This seems to affect runtimes where performance.now exists in a malformed/non-callable form.

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