Skip to content

Escape string conversion is incorrect #250

@capthehacker99

Description

@capthehacker99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions