Skip to content
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

06_objects - assert when calling modulename.MyObject #2

Closed
pconstr opened this issue Dec 8, 2011 · 2 comments
Closed

06_objects - assert when calling modulename.MyObject #2

pconstr opened this issue Dec 8, 2011 · 2 comments

Comments

@pconstr
Copy link

pconstr commented Dec 8, 2011

in 06_objects/run.js , if I change:

var obj = new modulename.MyObject(42);

to:

var obj = modulename.MyObject(42);

I get:

Assertion failed: (handle->InternalFieldCount() > 0), function Wrap, file ../src/node_object_wrap.h, line 62.

naturally, this is not the intended usage, but a Javascript error would be nicer than a c++ assertion failure

@kkaefer kkaefer closed this as completed in bd94320 Dec 8, 2011
@kkaefer
Copy link
Owner

kkaefer commented Dec 8, 2011

Thanks for catching this!

@pconstr
Copy link
Author

pconstr commented Dec 8, 2011

that was quick :)
Thank you for sharing. I'm new to node and v8, and I've found your guide very useful.

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

No branches or pull requests

2 participants