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:
dave caruso
2023-08-06 06:13:39 -07:00
committed by GitHub
parent cf8650937a
commit cd0774cd89
8 changed files with 151 additions and 7 deletions

View File

@@ -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) {