}
Console.prototype.log = function() {
- this._stdout.write(util.format.apply(this, arguments) + '\n');
+ this._stdout.write(util.format.apply(null, arguments) + '\n');
};
Console.prototype.warn = function() {
- this._stderr.write(util.format.apply(this, arguments) + '\n');
+ this._stderr.write(util.format.apply(null, arguments) + '\n');
};
// exposed.
var err = new Error();
err.name = 'Trace';
- err.message = util.format.apply(this, arguments);
+ err.message = util.format.apply(null, arguments);
Error.captureStackTrace(err, trace);
this.error(err.stack);
};
Console.prototype.assert = function(expression) {
if (!expression) {
var arr = Array.prototype.slice.call(arguments, 1);
- require('assert').ok(false, util.format.apply(this, arr));
+ require('assert').ok(false, util.format.apply(null, arr));
}
};