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

Commits on Sep 7, 2017

  1. Throw error if number is bigger than MAX size

    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.
    Adriano Melo committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    2f404b6 View commit details
    Browse the repository at this point in the history