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

Author: Merciful12Created Apr 3, 2026Updated Apr 3, 2026

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:

javascript
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.