Files
bun.sh/misctools/bun-feature-data.ts
dave caruso 5bdc5bebb1 feat: crash reporter followup (#10365)
* 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>
2024-04-19 20:50:37 -07:00

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));
}