Add asserts that crash the game in debug mode #486

Open
opened 2026-05-07 07:02:33 +00:00 by LunarTides · 0 comments
Owner

Add a game.assert function that throws an error if debug mode is enabled, or ignores it otherwise. This allows for more strict validation when working on the game, without end users being too affected. A Debug > Asserts config option should be added.

Add a `game.assert` function that throws an error if debug mode is enabled, or ignores it otherwise. This allows for more strict validation when working on the game, without end users being too affected. A `Debug > Asserts` config option should be added.
LunarTides added this to the 4.0 milestone 2026-05-07 07:02:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#486
No description provided.