windows: random things (#9046)

* random things

* fix reliability of loading napi stuff

* fix posix build

* a
This commit is contained in:
dave caruso
2024-02-27 16:30:34 -08:00
committed by GitHub
parent c9b5191fc2
commit c54844b30b
11 changed files with 97 additions and 38 deletions

View File

@@ -672,7 +672,7 @@ pub const String = extern struct {
return "";
}
pub fn encoding(self: String) bun.strings.Encoding {
pub fn encoding(self: String) bun.strings.EncodingNonAscii {
if (self.isUTF16()) {
return .utf16;
}