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

Allow onError/onSession/onBreadcrumb callbacks with no arguments #863

Merged
merged 2 commits into from May 26, 2020

Conversation

imjoehaines
Copy link
Member

Previously a callback like () => false would never be called due to the length check; it had to be written as _ => false instead (i.e. have at least one argument)

@imjoehaines imjoehaines force-pushed the allow-callbacks-with-no-arguments branch from d297d2b to fdec85f Compare May 21, 2020 10:53
@bugsnagbot
Copy link
Collaborator

bugsnagbot commented May 21, 2020

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 39.28 kB 12.12 kB
After 39.22 kB 12.11 kB
± -61 bytes -10 bytes

Generated by 🚫 dangerJS against cdd5f17

Previously a callback like '() => false' would never be called due
to the length check; it had to be written as '_ => false' instead
@imjoehaines imjoehaines force-pushed the allow-callbacks-with-no-arguments branch from fdec85f to 644a6e1 Compare May 21, 2020 12:01
@bengourley bengourley merged commit c70b4c2 into next May 26, 2020
@bengourley bengourley deleted the allow-callbacks-with-no-arguments branch May 26, 2020 11:03
@bengourley bengourley mentioned this pull request May 26, 2020
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

4 participants