Skip to content

fix(run): require decimal max values - #67

Merged
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/strict-run-max-decimal
Jul 30, 2026
Merged

fix(run): require decimal max values#67
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/strict-run-max-decimal

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • require moshcode run --max values to use decimal integer text
  • reject alternate Number() forms such as 1e1 and 0x2 instead of silently accepting them
  • keep normal decimal --max values working

Test

  • node --test --test-name-pattern "run rejects non-decimal max values|run accepts equals-form max option" test/run-options.test.mjs

Note: the full test/run-options.test.mjs file still has an existing Windows-only shell expansion failure in the nested MOSHCODE_NESTED test, unrelated to this parser change.

@ralyodio
ralyodio merged commit 86a3fa8 into moshcoder:main Jul 30, 2026
3 checks passed
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.

2 participants