botrefund.com
← BotRefund Home DEVTOOLS & CDP TELEMETRY

Error Stack Preparation Probe

BotRefund briefly wraps Error.prepareStackTrace around a fresh Error object without reading its stack property to detect eager DevTools or script inspection.

What we test

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.

Why it matters

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.

EXPLANATION

How to interpret the response

01 EXPECTED RESPONSE

Lazy error instantiation without debugger inspection

Constructing new Error('') without reading .stack leaves Error.prepareStackTrace uncalled during standard consumer browsing.

Example result Error constructed: new Error("") • .stack read: no • prepareStackTrace invoked: no — Result: normal lazy stack behavior
02 POSSIBLE AUTOMATION SIGNAL

Eager stack inspection during error construction

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.

Example result Error constructed: new Error("") • .stack read: no • prepareStackTrace invoked: yes — Result: eager stack inspection detected

Forensic significance: Gentle supporting telemetry cue; completely cleared when verified human interaction is observed so developer sessions and monitoring extensions are not penalized.