mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
* think about the future * waaaaaaaaaaa * a * testing * make it faster * fire * macos and linux * stuff * a * a * CI * buh * disable in debug * Apply formatting changes * a * a * Apply formatting changes * more review comment resolution * a * a * oh no i started writing macos code from within windows i should stop and switch devices again * rookie mistake --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: paperdave <paperdave@users.noreply.github.com>
19 lines
463 B
TypeScript
19 lines
463 B
TypeScript
let internal;
|
|
try {
|
|
internal = require("bun:internal-for-testing");
|
|
} catch {
|
|
const result = Bun.spawnSync({
|
|
cmd: [process.execPath, import.meta.file],
|
|
env: {
|
|
...process.env,
|
|
BUN_DEBUG_QUIET_LOGS: "1",
|
|
BUN_GARBAGE_COLLECTOR_LEVEL: "0",
|
|
BUN_FEATURE_FLAG_INTERNAL_FOR_TESTING: "1",
|
|
},
|
|
});
|
|
process.exit(result.exitCode);
|
|
}
|
|
if (internal) {
|
|
console.log(JSON.stringify(internal.crash_handler.getFeatureData(), null, 2));
|
|
}
|