Update app.js

This commit is contained in:
Namhyeon Go 2021-04-28 16:45:56 +09:00
parent dfb661bdf9
commit d5f7114f55

7
app.js
View File

@ -61,6 +61,13 @@ var console = {
} }
this._messages.push(msg); this._messages.push(msg);
}, },
assert: function(assertion) {
if (arguments.length > 1 && assertion === arguments[0]) {
if(!assertion) {
this.error("Assertion failed: " + this._join(arguments.slice(1)));
}
}
},
clear: function() { clear: function() {
this._messages = []; this._messages = [];
}, },