| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 43ac5a2 commit 0312065
3 files changed
| 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 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 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": { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments