tools: update lint-md-dependencies to unified@11.0.5

PR-URL: https://github.com/nodejs/node/pull/53555
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
Node.js GitHub Bot 2024-06-30 10:05:32 +03:00 committed by GitHub
parent fe2d4dc08a
commit dcebac8885
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 28 deletions

View file

@ -497,16 +497,11 @@ const CallableInstance =
const proto = (
constr.prototype
);
const func = proto[property];
const value = proto[property];
const apply = function () {
return func.apply(apply, arguments)
return value.apply(apply, arguments)
};
Object.setPrototypeOf(apply, proto);
const names = Object.getOwnPropertyNames(func);
for (const p of names) {
const descriptor = Object.getOwnPropertyDescriptor(func, p);
if (descriptor) Object.defineProperty(apply, p, descriptor);
}
return apply
}
)