Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions tools/lint-md/lint-md.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
)
Expand Down
38 changes: 24 additions & 14 deletions tools/lint-md/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/lint-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"remark-preset-lint-node": "^5.0.2",
"remark-stringify": "^11.0.0",
"to-vfile": "^8.0.0",
"unified": "^11.0.4",
"unified": "^11.0.5",
"vfile-reporter": "^8.1.1"
},
"devDependencies": {
Expand Down