(fn)
| 129 | } |
| 130 | |
| 131 | function registerPluginName (fn) { |
| 132 | const meta = getMeta(fn) |
| 133 | if (!meta) return |
| 134 | |
| 135 | const name = meta.name |
| 136 | if (!name) return |
| 137 | this[kRegisteredPlugins].push(name) |
| 138 | return name |
| 139 | } |
| 140 | |
| 141 | function checkPluginHealthiness (fn, pluginName) { |
| 142 | if (fn.constructor.name === 'AsyncFunction' && fn.length === 3) { |