summaryrefslogtreecommitdiff
path: root/lib/console.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/console.js')
-rw-r--r--lib/console.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/console.js b/lib/console.js
index 63e3c5e0bf..f9032e24a0 100644
--- a/lib/console.js
+++ b/lib/console.js
@@ -73,7 +73,7 @@ Console.prototype.timeEnd = function(label) {
Console.prototype.trace = function trace() {
// TODO probably can to do this better with V8's debug object once that is
// exposed.
- var err = new Error;
+ var err = new Error();
err.name = 'Trace';
err.message = util.format.apply(this, arguments);
Error.captureStackTrace(err, trace);