property
CompileBuildOptions.aotLogTypeMismatches
aotLogTypeMismatches?: boolean
With aot: log every value that doesn't match its declared type.
A mismatch never changes what the program does: the function falls back to its slow path and behaves as it does under bun run. Each log line has the location, the expected type and the kind of value it got, never the value itself. Lines go to stderr, or to the file in the BUN_AOT_TYPE_MISMATCH_LOG environment variable.
Equivalent CLI flag: --aot-log-type-mismatches