-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ObjectReference test case #212
Conversation
test/objectreference.cc
Outdated
@@ -0,0 +1,163 @@ | |||
/* ObjectReference cant be used to create references to Values that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be can as opposed to cant
test/objectreference.js
Outdated
assert.equal(rcount, 0); | ||
binding.objectreference.unrefObjects("weak"); | ||
}, | ||
Error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the first 2 asserts are supposed to pass I'm not sure this would catch failures of those asserts ? (Since they throw and overall the assert.throws does not check what Error occured ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I see the following crash after the tests run when this new test is added:
If I revert this PR the failure goes away. |
@mhdawson when you get a chance, can you check if my recent changes still causes a segfault? Checking on macOS and an ubuntu machine, the segfault no longer occurs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR-URL: #212 Reviewed-By: Michael Dawson <[email protected]>
Landed as 4d92a60 |
PR-URL: nodejs/node-addon-api#212 Reviewed-By: Michael Dawson <[email protected]>
PR-URL: nodejs/node-addon-api#212 Reviewed-By: Michael Dawson <[email protected]>
PR-URL: nodejs/node-addon-api#212 Reviewed-By: Michael Dawson <[email protected]>
PR-URL: nodejs/node-addon-api#212 Reviewed-By: Michael Dawson <[email protected]>
No description provided.