diff --git a/plugins/c9.nodeapi/http-error.js b/plugins/c9.nodeapi/http-error.js index 02df3edf..204bee0a 100644 --- a/plugins/c9.nodeapi/http-error.js +++ b/plugins/c9.nodeapi/http-error.js @@ -104,7 +104,7 @@ for (var status in statusCodes) { exports.HttpError.call(this, msg || status + ": " + defaultMsg, status); if (status >= 500) - Error.captureStackTrace(this, arguments.callee); + Error.captureStackTrace(this, this.constructor); }; })(defaultMsg, status);