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

Throw error if number is bigger than MAX size #13

Closed
wants to merge 1 commit into from
Closed

Throw error if number is bigger than MAX size #13

wants to merge 1 commit into from

Conversation

adrianomelo
Copy link

The function toWords throws "RangeError: Maximum call stack size exceeded" exception
if the number is greater than MAX size.

The changes from this patch introduce a check to verify if the number can be transformed into words.
If the number is greater than MAX size, it throws an explicit exception to pinpoint the problem.

The function toWords throws "RangeError: Maximum call stack size exceeded" exception
if the number is greater than MAX size.

The changes from this patch introduces a check to verify if the number can be transformed into words.
If the number is greater than MAX size, it throws an explicit exception to pinpoint the problem.
marlun78 added a commit that referenced this pull request Aug 9, 2018
marlun78 added a commit that referenced this pull request Aug 9, 2018
@marlun78 marlun78 closed this in b7bed3e Aug 9, 2018
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

1 participant