mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +15240 from c9/pull/core/389
Fix a use of `arguments.callee` in strict-mode code.
This commit is contained in:
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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user