feat: overhaul the crash handler (#10203)

* some work

* linux things

* linux things

* feat: tracestrings on Windows

* bwaa

* more work on the crash handler

* okay

* adgadsgbcxcv

* ya

* dsafds

* a

* wuh

* a

* bru h

* ok

* yay

* window

* alright

* oops

* yeah

* a

* a

* OOM handling

* fix on window
This commit is contained in:
dave caruso
2024-04-17 15:32:25 -07:00
committed by GitHub
parent f764c1233b
commit c99d7ed331
48 changed files with 1575 additions and 1020 deletions

View File

@@ -5402,6 +5402,20 @@ pub fn convertUTF8toUTF16InBuffer(
return buf[0..result];
}
pub fn convertUTF8toUTF16InBufferZ(
buf: []u16,
input: []const u8,
) [:0]u16 {
// TODO: see convertUTF8toUTF16InBuffer
if (input.len == 0) {
buf[0] = 0;
return buf[0..0 :0];
}
const result = bun.simdutf.convert.utf8.to.utf16.le(input, buf);
buf[result] = 0;
return buf[0..result :0];
}
pub fn convertUTF16toUTF8InBuffer(
buf: []u8,
input: []const u16,