diff --git a/lib/application.js b/lib/application.js index 34398a5..da7674e 100644 --- a/lib/application.js +++ b/lib/application.js @@ -229,5 +229,6 @@ function createContext() { this.req = req; this.res = res; this.cookies = new Cookies(req, res); + this.onerror = this.onerror.bind(this); } }