Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils): Check for performance.now() when calculating browser timing #3657

Merged
merged 1 commit into from Jun 7, 2021

Conversation

AbhiPrasad
Copy link
Member

We should guard against performance.now not being available
when calculating browserPerformanceTimeOrigin. We do a similar check
when for our wrapper around the native performance api implementation.

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

We should guard against performance.now not being available
when calculating browserPerformanceTimeOrigin. We do a similar check
when for our wrapper around the native performance api implementation.
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.83 KB (-0.02% 🔽)
@sentry/browser - Webpack 21.72 KB (0%)
@sentry/react - Webpack 21.75 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.22 KB (-0.01% 🔽)

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) June 7, 2021 18:21
@AbhiPrasad AbhiPrasad merged commit 85bb9f6 into master Jun 7, 2021
@AbhiPrasad AbhiPrasad deleted the abhi/performance-now branch June 7, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants