mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #93] tests: provide AbortController and timers in viewer camera speed test sandbox #146
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#146
Loading…
Reference in a new issue
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/93
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9823📝 Commits (1)
3b7971dtests: provide AbortController and timers in viewer camera speed test sandbox📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
tests/test_viewer_streaming.cjs(+1 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116641828
What and why
Fixes a regression on
main(2d53a8055) intests/test_viewer_streaming.cjswhereShift speeds the camera up and Ctrl slows it down, on either side of the keyboardfails withReferenceError: AbortController is not definedinsideloadWorld().loadWorld()creates anAbortControllerand timeout timers; the sibling VM sandbox at line 356 passesAbortController, setTimeout, clearTimeout, while the camera-speed sandbox at line 391 omitted them.Verification (Windows 11 Home 26H2, Node.js v24.19.0, no game files)
e56d97950/2d53a8055):node --test tests/test_viewer_streaming.cjs-> 56 passed, 1 failed (ReferenceError: AbortController is not defined).node --test tests/test_viewer_streaming.cjs-> 57 passed, 0 failed.python -I scripts/check_no_game_data.py tests/test_viewer_streaming.cjs: clean (rc=0).git diff --check: clean (rc=0).AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.