deprecate app.experimental
This commit is contained in:
parent
d3066715e3
commit
8430e7e275
1 changed files with 3 additions and 0 deletions
|
@ -119,6 +119,9 @@ app.use = function(fn){
|
||||||
*/
|
*/
|
||||||
|
|
||||||
app.callback = function(){
|
app.callback = function(){
|
||||||
|
if (this.experimental) {
|
||||||
|
console.error('Experimental ES7 Async Function support is deprecated. Please look into Koa v2 as the middleware signature has changed.')
|
||||||
|
}
|
||||||
var fn = this.experimental
|
var fn = this.experimental
|
||||||
? compose_es7(this.middleware)
|
? compose_es7(this.middleware)
|
||||||
: co.wrap(compose(this.middleware));
|
: co.wrap(compose(this.middleware));
|
||||||
|
|
Loading…
Reference in a new issue