This commit is contained in:
Jarred Sumner
2024-06-22 21:46:55 -07:00
committed by Zack Radisic
parent 8cecfda535
commit 16b6d0905c
2 changed files with 8 additions and 1 deletions

View File

@@ -9792,7 +9792,7 @@ pub const PackageManager = struct {
// add
// remove
outer: for (positionals) |positional| {
var input: []u8 = @constCast(std.mem.trim(u8, positional, " \n\r\t"));
var input: []u8 = bun.default_allocator.dupe(u8, std.mem.trim(u8, positional, " \n\r\t")) catch bun.outOfMemory();
{
var temp: [2048]u8 = undefined;
const len = std.mem.replace(u8, input, "\\\\", "/", &temp);

View File

@@ -0,0 +1,7 @@
import { test, expect } from "bun:test";
import "harness";
// https://github.com/oven-sh/bun/issues/12070
test("bun repl", () => {
expect(["repl", "-e", "process.exit(0)"]).toRun();
});