kopia lustrzana https://github.com/c9/core
Merge pull request +15240 from c9/pull/core/389
Fix a use of `arguments.callee` in strict-mode code.pull/402/head
commit
718e42e9fa
|
@ -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);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue