lukeed/tidyPublic

refactor: JS handle text as bytes

As in bun, a handle's text() and File::slice give bytes, which the
printer works on. source() and File::str give the same as a string.
LELuke Edwards authored
fd2bcf4Patch
Parent6ed0385
8 files changed+31-16
StackedSplit
crates/tidy/src/js/ast/comments.rs+1 −1
crates/tidy/src/js/ast/decl.rs+1 −1
crates/tidy/src/js/ast/expr.rs+5 −5
crates/tidy/src/js/ast/key.rs+3 −3
crates/tidy/src/js/ast/mod.rs+10 −1
crates/tidy/src/js/ast/node.rs+7 −1
crates/tidy/src/js/ast/stmt.rs+3 −3
crates/tidy/src/js/ast/ty.rs+1 −1