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

parseInteger and leading whitespace #99

Closed
ewxrjk opened this issue Jul 29, 2021 · 0 comments
Closed

parseInteger and leading whitespace #99

ewxrjk opened this issue Jul 29, 2021 · 0 comments
Milestone

Comments

@ewxrjk
Copy link
Owner

ewxrjk commented Jul 29, 2021

#if 0
  // TODO maybe this should be rejected
  try {
    parseInteger(" 100", 0, 1000, 0);
    assert(0);
  } catch(SyntaxError &) {
  }
#endif

There's no good reason to accept leading whitespace.

@ewxrjk ewxrjk added this to the 9.0 milestone Aug 2, 2021
@ewxrjk ewxrjk closed this as completed in 1a44366 Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant