Files
oh-my-pi/packages
roboomp 0ef430a39f fix(debug): guarded v8.setFlagsFromString call so CPU profiler works on Bun
The CPU profiler called node:v8 setFlagsFromString("--allow-natives-syntax")
unconditionally and crashed on Bun (oven-sh/bun#1702), surfacing as
"Failed to start profiler: node:v8 setFlagsFromString is not yet
implemented in Bun". The flag is only needed for ad-hoc V8 natives such
as %GetOptimizationStatus, not for the CDP Profiler session that actually
collects samples — so swallow the error and let the inspector path run.

Added a Bun-runtime regression test that would have caught the crash:
without the guard, startCpuProfile() throws before returning a session.

Fixes #3897
2026-06-30 12:47:07 +00:00
..
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-27 04:39:59 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00
2026-06-30 11:58:55 +02:00