Skip to content

06_objects - assert when calling modulename.MyObject #2

Closed

Description

@pconstr

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

Activity

  1. kkaefer commented on Dec 8, 2011

    @kkaefer
    Owner

    Thanks for catching this!

  2. pconstr commented on Dec 8, 2011

    @pconstr
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions