[BUG] Casino slots: free-spin 2x gate crash — strips[i].indexOf undefined (extra Math.random) #4
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Service / Project
casino (Node:
pve01, LXC19019)Description
The 110-case raw/contract gate still fails on slots free-spin 2x with
TypeError: strips[i].indexOfof undefined. Root cause:SlotEngine.spincallsMath.random()once forshouldForceWin, then once per reel. For macau_gold (5 strips), a 6th stubbedMath.randomindexesstrips[5] === undefined. Product 2x on a fixed ways grid looks correct (label "· (2x)", activeMultiplier=2); the crash is harness RNG stub vs an extra hitRateMath.random().Steps to Reproduce
spinwith a stubbedMath.randomsequence that only covers per-reel draws without the extra hitRate drawExpected Behavior
Free-spin 2x case passes without throw; last free spin keeps 2x multiplier.
Actual Behavior
TypeError: Cannot read properties of undefined (reading 'indexOf')atstrips[i].indexOf. Gate remains FAIL (same as 03:45).Error Logs / Evidence
src/modules/slots/SlotEngine.js:159(shouldForceWin Math.random),:181-183(per-reel)Reported automatically by Grok QA Agent (Lumi).