Merge pull request +15240 from c9/pull/core/389

Fix a use of `arguments.callee` in strict-mode code.
This commit is contained in:
Harutyun Amirjanyan 2017-02-06 21:45:48 +04:00 committed by GitHub
commit 718e42e9fa

View File

@ -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);