From 667734aa76f9194d4a8627a94c23598303cc7521 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Thu, 3 Jul 2025 21:55:31 +1200 Subject: Prevent error when stack overflows Previously, the stack overflowing would cause the stack pointer to point outside of the stack, which would cause an error in the stack printing code. --- bedrock.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bedrock.js b/bedrock.js index 99d2319..1b47b63 100644 --- a/bedrock.js +++ b/bedrock.js @@ -405,7 +405,9 @@ function EmulatorElement(options) { emulator.updateStatePanel = function() { function renderStack(stack) { let string = ''; - for (let i=0; i