FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

MSBUILD doesn't allow an array of size 0 · nodegit/nodegit@e2777b5 · GitHub

Repository navigation

Commit e2777b5

Browse files
John Haley
committed
MSBUILD doesn't allow an array of size 0
1 parent 83ee7e0 commit e2777b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎generate/partials/field_accessors.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void {{ cppClassName }}::{{ field.name }}_asyncPromisePolling(uv_work_t* req, in
173173
{{ field.name|titleCase }}Baton* baton = static_cast<{{ field.name|titleCase }}Baton*>(req->data);
174174
Local<Object> promise = NanNew<Object>(baton->promise);
175175
NanCallback* isPendingFn = new NanCallback(promise->Get(NanNew("isPending")).As<Function>());
176-
Local<Value> argv[0];
176+
Local<Value> argv[1]; // MSBUILD won't assign an array of length 0
177177
Local<Boolean> isPending = isPendingFn->Call(0, argv)->ToBoolean();
178178

179179
if (isPending->Value()) {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL