botrefund.com
← BotRefund Home BROWSER & INTERACTION SIGNAL

JavaScript eval Function Description

BotRefund checks eval.toString().length against expected native engine string lengths—33 characters for Chrome V8 and 37 characters for Safari or Firefox.

What we test

The client measures eval.toString().length. In V8 browsers (Chrome and CriOS), 'function eval() { [native code] }' totals 33 characters, whereas JavaScriptCore (Safari) and SpiderMonkey (Firefox) place newlines around [native code], totaling 37 characters.

The session flags an engine mismatch whenever a claimed Chrome or CriOS User-Agent does not return 33, or a claimed Safari or Firefox User-Agent does not return 37.

Why it matters

Cross-engine impersonation—such as Playwright or Puppeteer Chromium pretending to be Safari or Firefox via User-Agent strings—continues exposing V8's 33-character eval.toString() formatting unless Function.prototype.toString is hooked.

Evaluating this strictly as supporting context avoids false positives on embedded WebViews or custom browser builds once genuine human interaction is confirmed.

EXPLANATION

How to interpret the response

01 EXPECTED RESPONSE

eval.toString().length matches claimed JS engine

Native Chrome returns 33 characters and native Safari or Firefox return 37, matching their declared browser User-Agent cleanly.

Example result Claimed browser: Chrome • eval.toString().length: 33 — Result: engine output matches User-Agent
02 POSSIBLE AUTOMATION SIGNAL

V8 length (33) under Safari/Firefox UA or vice versa

Chromium spoofing a Safari or Firefox User-Agent reports 33 instead of 37, exposing a cross-engine identity mismatch when unaccompanied by human interaction.

Example result Claimed browser: Safari • eval.toString().length: 33 (expected 37) — Result: JavaScript engine mismatch

Forensic significance: Supporting engine-consistency signal; effective for exposing spoofed Safari or Firefox User-Agents running on Chromium, and cleared once human interaction appears.