Remove console.log implementation that renders to the page from utils (was there to debug mobile)

This commit is contained in:
towards-a-new-leftypol 2024-02-27 15:49:13 -05:00
parent e222eb4779
commit b40fef173f
1 changed files with 0 additions and 40 deletions

View File

@ -11,46 +11,6 @@ function cont(value_to_test, fn) {
}
}
function text(s) {
return document.createTextNode(s);
}
function prepend(elem, children) {
var child = elem.firstChild;
if (child) {
elem.insertBefore(children, child);
} else {
elem.appendChild(children);
}
}
function _log() {
for (var arg of arguments) {
if (arg == null) {
continue;
}
var pre = document.createElement('pre');
pre.appendChild(text(arg.toString()));
document.body.appendChild(pre);
try {
prepend(document.body, pre);
} catch (e) {
var pre = document.createElement('pre');
pre.appendChild(text(e.toString()));
document.body.appendChild(pre);
}
}
}
var console = {
log: _log,
error: _log
};
const assert = {
"equal": (actual, expected, message="No message set") => {
if (actual !== expected) {