(fn, pluginName)
| 139 | } |
| 140 | |
| 141 | function checkPluginHealthiness (fn, pluginName) { |
| 142 | if (fn.constructor.name === 'AsyncFunction' && fn.length === 3) { |
| 143 | throw new FST_ERR_PLUGIN_INVALID_ASYNC_HANDLER(pluginName) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | function registerPlugin (fn) { |
| 148 | const pluginName = registerPluginName.call(this, fn) || getPluginName(fn) |
nothing calls this directly
no outgoing calls
no test coverage detected