mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
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:
parent
fe2d4dc08a
commit
dcebac8885
3 changed files with 33 additions and 28 deletions
|
@ -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
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue