Skip to content

Major bug fixes in luamin.js#42

Open
Mp3Alt wants to merge 2 commits into
Herrtt:masterfrom
Mp3Alt:master
Open

Major bug fixes in luamin.js#42
Mp3Alt wants to merge 2 commits into
Herrtt:masterfrom
Mp3Alt:master

Conversation

@Mp3Alt
Copy link
Copy Markdown

@Mp3Alt Mp3Alt commented Apr 13, 2026

Fixes Tokenizer's strict expectations with numbers.
Fixes ";" stripping ambiguously.
Fixes unary spacing. No longer converts "-49" -> "- 49" and "#table" -> "# table"
Removes trailing ";".

Mp3Alt added 2 commits April 13, 2026 00:07
Fixes Tokenizers strict expectations with numbers.
Fixes ";" stripping ambiguously.
Fixes unary spacing. "-49" -> "- 49" and "#table" -> "# table"
Removes trailing ";". ""
Added "if (!radix || radix === 10) { return Number(str.toString()); }" to parseFloat to handle function notation.

Revert 0_x, 0_b number fix, as it broke other numbers in specific cases.
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.

1 participant