Skip to content

chore: make Long alias functions into methods #414

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

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Dec 1, 2020

When converting the Long code to es6 the alias methods were made into class properties, which makes them enumerable, making debugging statements quite long, this fixes that by making the aliases proper methods.

https://jira.mongodb.org/browse/NODE-2845

@nbbeeken nbbeeken requested review from emadum and kmahar December 1, 2020 13:47
Copy link
Member

@mbroadst mbroadst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nbbeeken nbbeeken merged commit 12169dc into master Dec 1, 2020
@nbbeeken nbbeeken deleted the NODE-2845/long-methods branch December 1, 2020 19:13
/** This is an alias of {@link Long.greaterThanOrEqual} */
ge = Long.prototype.greaterThanOrEqual;
ge(other: string | number | Long | Timestamp): boolean {
return this.greaterThan(other);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this should be greaterThanOrEqual

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.

3 participants