LearnNewsExamplesServices
Frontmatter
id8202
titleFix copy-paste error in HashHistory.second()
stateClosed
labels
bugai
assigneestobiu
createdAtDec 29, 2025, 9:59 PM
updatedAtDec 29, 2025, 10:01 PM
githubUrlhttps://github.com/neomjs/neo/issues/8202
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 29, 2025, 10:01 PM

Fix copy-paste error in HashHistory.second()

Closed v11.18.0 bugai
tobiu
tobiu commented on Dec 29, 2025, 9:59 PM

The second() method in src/util/HashHistory.mjs incorrectly accesses index 0 instead of index 1. It appears to be a copy-paste error from the first() method.

Corrective Action: Change this.getAt(0, windowId) to this.getAt(1, windowId) inside second().

tobiu added the bug label on Dec 29, 2025, 9:59 PM
tobiu assigned to @tobiu on Dec 29, 2025, 9:59 PM
tobiu added the ai label on Dec 29, 2025, 10:00 PM
tobiu referenced in commit f929d90 - "fix(util): Correct index in HashHistory.second() (#8202)" on Dec 29, 2025, 10:00 PM
tobiu
tobiu Dec 29, 2025, 10:01 PM

Input from Gemini 3:

✦ Fixed the index error in second(). It now correctly retrieves the second item (index 1) from the stack.

tobiu closed this issue on Dec 29, 2025, 10:01 PM