Skip to content

Conversation

@ofrobots
Copy link
Contributor

No need to use a MaybeLocal. It is possible to pass an empty Local
to indicated that an object should be allocated automatically.

bnoordhuis

This comment was marked as off-topic.

No need to use a MaybeLocal. It is possible to pass an empty Local
to indicate that an object should be allocated automatically. For
further convenience, change the order of the parameters to allow for a
default value for resource.
@ofrobots ofrobots force-pushed the asyncresource-maybe branch from f2365d0 to 265b640 Compare February 13, 2018 12:07
@kkoopa
Copy link
Collaborator

kkoopa commented Feb 13, 2018

Windows builds are currently failing due to a couple (unrelated) things in two new tests from the previous PRs: https://ci.appveyor.com/project/RodVagg/nan/build/job/8vx1q4hhlnetncsi

test\cpp\callbackcontext.cpp(38): error C2466: cannot allocate an array of constant size 0
test\cpp\asyncresource.cpp(41): error C2466: cannot allocate an array of constant size 0

Please pass null instead. You can add the commit here if you like.

@ofrobots
Copy link
Contributor Author

Fixed the windows build.

kkoopa

This comment was marked as off-topic.

@kkoopa
Copy link
Collaborator

kkoopa commented Feb 13, 2018 via email

@kkoopa kkoopa merged commit ae82fb2 into nodejs:master Feb 13, 2018
@ofrobots ofrobots deleted the asyncresource-maybe branch February 16, 2018 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants