mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
16 lines
452 B
JavaScript
16 lines
452 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
if (common.isWindows) return; // TODO: BUN
|
|
const fs = require('fs');
|
|
const net = require('net');
|
|
|
|
const tmpdir = require('../common/tmpdir');
|
|
tmpdir.refresh();
|
|
|
|
const server = net.createServer().listen(common.PIPE, common.mustCall(() => {
|
|
// The process should not crash
|
|
// See https://github.com/nodejs/node/issues/52159
|
|
fs.readdirSync(tmpdir.path, { recursive: true });
|
|
server.close();
|
|
}));
|