(plugin)
| 140 | } |
| 141 | |
| 142 | use(plugin) { |
| 143 | if (typeof plugin !== 'function') { |
| 144 | throw new FormidableError( |
| 145 | '.use: expect `plugin` to be a function', |
| 146 | errors.pluginFunction, |
| 147 | ); |
| 148 | } |
| 149 | this._plugins.push(plugin.bind(this)); |
| 150 | return this; |
| 151 | } |
| 152 | |
| 153 | pause () { |
| 154 | try { |
no outgoing calls