From 98a386a48557d1bbcab97849f2d206ef48115572 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Thu, 3 Oct 2013 23:55:26 -0700 Subject: [PATCH] bind .onerror to context --- lib/application.js | 1 + 1 file changed, 1 insertion(+) 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); } }