This commit is contained in:
Alex Hultman 2020-08-07 15:07:22 +02:00
commit 999a00d1bc
2 changed files with 3 additions and 2 deletions

View file

@ -152,7 +152,7 @@ struct HttpResponseWrapper {
/* This thing perfectly fits in with unique_function, and will Reset on destructor */
UniquePersistent<Function> p(isolate, Local<Function>::Cast(args[0]));
res->onWritable([p = std::move(p), isolate](int offset) -> bool {
res->onWritable([p = std::move(p), isolate](size_t offset) -> bool {
HandleScope hs(isolate);
Local<Value> argv[] = {Number::New(isolate, offset)};