GeezerVison is showing github.com — tools: update lint-md-dependencies to [email protected] · nodejs/node@0312065
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tools/lint-md/lint-md.mjs +2-7Lines changed: 2 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -497,16 +497,11 @@ const CallableInstance = |
497 | 497 | const proto = ( |
498 | 498 | constr.prototype |
499 | 499 | ); |
500 | | - const func = proto[property]; |
| 500 | + const value = proto[property]; |
501 | 501 | const apply = function () { |
502 | | - return func.apply(apply, arguments) |
| 502 | + return value.apply(apply, arguments) |
503 | 503 | }; |
504 | 504 | 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 | | - } |
510 | 505 | return apply |
511 | 506 | } |
512 | 507 | ) |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/lint-md/package-lock.json +30-20Lines changed: 30 additions & 20 deletions Collapse file
Copy file name to clipboardExpand all lines: tools/lint-md/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | "remark-preset-lint-node": "^5.0.2", |
11 | 11 | "remark-stringify": "^11.0.0", |
12 | 12 | "to-vfile": "^8.0.0", |
13 | | - "unified": "^11.0.4", |
| 13 | + "unified": "^11.0.5", |
14 | 14 | "vfile-reporter": "^8.1.1" |
15 | 15 | }, |
16 | 16 | "devDependencies": { |
|