darklua
darklua copied to clipboard
Escape string conversion is incorrect
Given the following script as test.lua:
print(("\128"):byte(1, 1) == 128)
Run darklua minify test.lua test.min.lua to get test.min.lua:
print(('\u{80}'):byte(1,1)==128)
Run both scripts using luau and observe that the first script will print true while the second one will print false
having the same issue with luauception
Seems to have been introduced in 0.14.1, as in 0.14.0 this doesn't seem to be an issue. (Possibly #232 ?)
it only happens when dense or readable is set as generator on the config when a file is processed on darklua process