bind .onerror to context
This commit is contained in:
parent
4aa75a1164
commit
98a386a485
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue