mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Implement --test-name-pattern (#3998)
* Fix end not being emitted all the time * stuff * Implement -t * Undo js_printer changes * Undo http changes * Update InternalModuleRegistryConstants.h * Delete unrelated test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -228,7 +228,7 @@ pub const MutableString = struct {
|
||||
}
|
||||
|
||||
pub fn toOwnedSlice(self: *MutableString) string {
|
||||
return self.list.toOwnedSlice(self.allocator) catch @panic("TODO");
|
||||
return self.list.toOwnedSlice(self.allocator) catch @panic("Allocation Error"); // TODO
|
||||
}
|
||||
|
||||
pub fn toOwnedSliceLeaky(self: *MutableString) []u8 {
|
||||
@@ -255,7 +255,7 @@ pub const MutableString = struct {
|
||||
|
||||
pub fn toOwnedSliceLength(self: *MutableString, length: usize) string {
|
||||
self.list.shrinkAndFree(self.allocator, length);
|
||||
return self.list.toOwnedSlice(self.allocator) catch @panic("TODO");
|
||||
return self.list.toOwnedSlice(self.allocator) catch @panic("Allocation Error"); // TODO
|
||||
}
|
||||
|
||||
// pub fn deleteAt(self: *MutableString, i: usize) {
|
||||
|
||||
Reference in New Issue
Block a user