Skip to content

Conversation

@tgauth
Copy link
Collaborator

@tgauth tgauth commented May 22, 2024

PR Summary

PR Context

  • existing grammar parses only the decimal digit(s) of floating point input as a number, resulting in incorrect handling by functions, like int()
  • adds check for ERROR nodes in Rust parser for function name and args

@tgauth tgauth requested a review from SteveL-MSFT May 22, 2024 14:33
@tgauth tgauth requested a review from SteveL-MSFT May 29, 2024 14:47
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue May 31, 2024
Merged via the queue into PowerShell:main with commit b26a223 May 31, 2024
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Jun 13, 2024
In PowerShell#438 we changed the `int()` function to error on input that
isn't a string or an integer to align with the behavior of the
ARM template function.

This change:

- Updates the documentation for the function to match the updated
  behavior and removing the note about the now-patched bug.
- Adds an entry for the fix to the changelog.
@tgauth tgauth deleted the update-exp-for-non-ints branch August 27, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The int() function incorrectly handles non-integer numbers

2 participants