Update app.js

This commit is contained in:
Namhyeon Go 2022-01-27 11:10:39 +09:00 committed by GitHub
parent daa47a8fc5
commit c808595395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
app.js
View File

@ -60,13 +60,13 @@ var console = {
_echo: function(args, type) {
msg = (typeof(type) !== "undefined" ? type + ": " : "") + this._join(args);
if (typeof(WScript) !== "undefined") {
WScript.echo(" * " + msg);
WScript.echo(" * " + (type == "log" ? msg : "[" + type + "] " + msg));
}
this._messages.push(msg);
// after calling echo
if (typeof this._echoCallback === "function") {
_echoCallback(this);
if (['error', 'info', 'warn'].indexOf(type) > -1 && typeof this._echoCallback === "function") {
this._echoCallback(this);
}
},
assert: function(assertion) {