Merge pull request #56 from jonathanong/bind-onerror
bind .onerror to context
This commit is contained in:
commit
ada1be13bc
1 changed files with 1 additions and 0 deletions
|
@ -229,5 +229,6 @@ function createContext() {
|
|||
this.req = req;
|
||||
this.res = res;
|
||||
this.cookies = new Cookies(req, res);
|
||||
this.onerror = this.onerror.bind(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue