From 8430e7e275e527497a52647683226f7460e053ec Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Sun, 28 Feb 2016 16:13:52 -0800 Subject: [PATCH] deprecate app.experimental --- lib/application.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/application.js b/lib/application.js index 36cebb6..b544aee 100644 --- a/lib/application.js +++ b/lib/application.js @@ -119,6 +119,9 @@ app.use = function(fn){ */ 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 ? compose_es7(this.middleware) : co.wrap(compose(this.middleware));