Skip to content

Commit 5649f3d

Browse files
Update HttpRequestWrapper.h
1 parent fbafa7a commit 5649f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpRequestWrapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct HttpRequestWrapper {
2929
static inline constexpr decltype(auto) getHttpRequest(const FunctionCallbackInfo<Value> &args) {
3030
Isolate *isolate = args.GetIsolate();
3131
/* Thow on deleted request */
32-
auto *req = (uWS::HttpRequest *) args.Holder()->GetAlignedPointerFromInternalField(0);
32+
auto *req = (uWS::HttpRequest *) args.This()->GetAlignedPointerFromInternalField(0);
3333
if (!req) {
3434
args.GetReturnValue().Set(isolate->ThrowException(v8::Exception::Error(String::NewFromUtf8(isolate, "uWS.HttpRequest must not be accessed after await or route handler return. See documentation for uWS.HttpRequest and consult the user manual.", NewStringType::kNormal).ToLocalChecked())));
3535
}
@@ -121,7 +121,7 @@ struct HttpRequestWrapper {
121121
bool yield = args[0]->BooleanValue(isolate);
122122
req->setYield(yield);
123123

124-
args.GetReturnValue().Set(args.Holder());
124+
args.GetReturnValue().Set(args.This());
125125
}
126126
}
127127

0 commit comments

Comments
 (0)