mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 17:34:58 +00:00
Update app.js
This commit is contained in:
parent
dfb661bdf9
commit
d5f7114f55
7
app.js
7
app.js
|
@ -61,6 +61,13 @@ var console = {
|
|||
}
|
||||
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() {
|
||||
this._messages = [];
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user