kkaefer/node-cpp-modules — Issue #2: 06_objects - assert when calling modulename.MyObject
Author: pconstr
Created: 2011-12-08 17:16:05+00:00
State: open

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

```javascript
var obj = new modulename.MyObject(42);
```

to:

```javascript
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