bind .onerror to context

This commit is contained in:
Jonathan Ong 2013-10-03 23:55:26 -07:00
parent 4aa75a1164
commit 98a386a485
1 changed files with 1 additions and 0 deletions

View File

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