mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
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:
@@ -678,6 +678,10 @@ pub const VLQ = struct {
|
||||
// I believe the actual number is 7 bytes long, however we can add an extra byte to be more cautious
|
||||
bytes: [vlq_max_in_bytes]u8,
|
||||
len: u4 = 0,
|
||||
|
||||
pub fn writeTo(self: VLQ, writer: anytype) !void {
|
||||
try writer.writeAll(self.bytes[0..self.len]);
|
||||
}
|
||||
};
|
||||
|
||||
pub fn encodeVLQWithLookupTable(
|
||||
@@ -736,9 +740,7 @@ test "decodeVLQ" {
|
||||
// V V
|
||||
// 101011
|
||||
//
|
||||
pub fn encodeVLQ(
|
||||
value: i32,
|
||||
) VLQ {
|
||||
pub fn encodeVLQ(value: i32) VLQ {
|
||||
var len: u4 = 0;
|
||||
var bytes: [vlq_max_in_bytes]u8 = undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user