bind .onerror to context

This commit is contained in:
Jonathan Ong 2013-10-03 23:55:26 -07:00
parent 4aa75a1164
commit 98a386a485

View file

@ -229,5 +229,6 @@ function createContext() {
this.req = req; this.req = req;
this.res = res; this.res = res;
this.cookies = new Cookies(req, res); this.cookies = new Cookies(req, res);
this.onerror = this.onerror.bind(this);
} }
} }