Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arguments to reset() #9

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
clean buffer after reset
alanzyt311 committed Apr 22, 2023
commit 2f83da65373e32553ace113b3096aac99ce17cf9
3 changes: 2 additions & 1 deletion js/execution.js
Original file line number Diff line number Diff line change
@@ -45,7 +45,8 @@ class Execution {
InstructionUtils.init(ctx);
InstructionUtils.highlightCurrentInstruction();
// Elements.contextSelector.selectedIndex = ctx;

stdout[ctx] = "";
stderr[ctx] = "";
} else {
InstructionUtils.init(ctx);
InstructionUtils.highlightCurrentInstruction();