Lazy error instantiation without debugger inspection
Constructing new Error('') without reading .stack leaves Error.prepareStackTrace uncalled during standard consumer browsing.
BotRefund briefly wraps Error.prepareStackTrace around a fresh Error object without reading its stack property to detect eager DevTools or script inspection.
The probe temporarily replaces Error.prepareStackTrace with a thin pass-through wrapper, instantiates new Error('') without ever accessing the .stack property, and immediately restores the original handler.
If the wrapper records that Error.prepareStackTrace was invoked synchronously during error creation, the session notes eager stack inspection.
In V8-based browsers like Chrome and Edge, error stack formatting is lazy: creating an error object does not invoke Error.prepareStackTrace until code reads .stack—unless an active Chrome DevTools Protocol (CDP) bridge, an open DevTools console preview, or an instrumentation script eagerly inspects new errors.
Because web developers browsing with DevTools open—as well as some legitimate error-monitoring or session-replay tools—also trigger eager stack formatting, this probe acts only as a gentle supporting clue that is completely disregarded once human interaction occurs.
Constructing new Error('') without reading .stack leaves Error.prepareStackTrace uncalled during standard consumer browsing.
An active CDP instrumentation bridge or open console preview formats the error stack immediately on creation, surfacing a gentle inspector cue on non-interactive visits.
Forensic significance: Gentle supporting telemetry cue; completely cleared when verified human interaction is observed so developer sessions and monitoring extensions are not penalized.