mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
11 lines
436 B
JavaScript
11 lines
436 B
JavaScript
import path from "path";
|
|
import assert from "assert";
|
|
|
|
test("too-long path names do not crash when joined", () => {
|
|
const length = 4096;
|
|
const tooLengthyFolderName = Array.from({ length }).fill("b").join("");
|
|
assert.equal(path.join(tooLengthyFolderName), "b".repeat(length));
|
|
assert.equal(path.win32.join(tooLengthyFolderName), "b".repeat(length));
|
|
assert.equal(path.posix.join(tooLengthyFolderName), "b".repeat(length));
|
|
});
|