Skip to content

Commit

Permalink
fix(domain): use reference instead of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rush authored and mbroadst committed Aug 23, 2016
1 parent e143d6f commit 09a9ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ NAN_METHOD(Domain::BlockJobInfo)
return onFinished(PrimitiveReturnHandler(false));
}

return onFinished([&](Nan::Callback* callback) {
return onFinished([=](Nan::Callback* callback) {
Nan::HandleScope scope;
v8::Local<Object> data = Nan::New<Object>();
data->Set(Nan::New("type").ToLocalChecked(), Nan::New<Integer>((unsigned int)info.type));
Expand Down

0 comments on commit 09a9ff9

Please sign in to comment.