◐ Shell
clean mode source ↗

tools: update lint-md-dependencies to unified@11.0.5 · nodejs/node@0312065

Original file line numberDiff line numberDiff line change

@@ -497,16 +497,11 @@ const CallableInstance =

497497

const proto = (

498498

constr.prototype

499499

);

500-

const func = proto[property];

500+

const value = proto[property];

501501

const apply = function () {

502-

return func.apply(apply, arguments)

502+

return value.apply(apply, arguments)

503503

};

504504

Object.setPrototypeOf(apply, proto);

505-

const names = Object.getOwnPropertyNames(func);

506-

for (const p of names) {

507-

const descriptor = Object.getOwnPropertyDescriptor(func, p);

508-

if (descriptor) Object.defineProperty(apply, p, descriptor);

509-

}

510505

return apply

511506

}

512507

)