From eebcd66f2e626ca0fa7b354585ca91e29bdb3ec5 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Tue, 29 Jul 2014 17:13:21 +0200 Subject: [PATCH] jstanks: replace alert! with debug! --- debugger.html.m4 | 2 +- jstanks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger.html.m4 b/debugger.html.m4 index 0e20ee5..7e4d2da 100644 --- a/debugger.html.m4 +++ b/debugger.html.m4 @@ -70,7 +70,7 @@

(Remember to submit (below) when you're done!)

-

+

[debug! puts things here, remember to remove it before submitting]

diff --git a/jstanks.js b/jstanks.js index 8bf38f6..2924998 100644 --- a/jstanks.js +++ b/jstanks.js @@ -74,7 +74,7 @@ var Forf = function() { this.cmdstack = []; this.builtins = new Object(); - this.builtins["alert!"] = function(myforf) { alert(myforf.datastack.pop()); }; + this.builtins["debug!"] = function(myforf) { document.getElementById('debug').innerHTML = myforf.datastack.pop(); }; var unfunc = function(func) { return function(myforf) { var a = myforf.datastack.pop();