mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
committed by
Zack Radisic
parent
8cecfda535
commit
16b6d0905c
@@ -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);
|
||||
|
||||
7
test/cli/install/bun-repl.test.ts
Normal file
7
test/cli/install/bun-repl.test.ts
Normal 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();
|
||||
});
|
||||
Reference in New Issue
Block a user