node-qt
node-qt copied to clipboard
Example fails with QT 5.3.1 on OSX 10.9.3
Assertion failed: (handle->InternalFieldCount() > 0), function Unwrap, file /Users/sebastian/.node-gyp/0.10.29/src/node_object_wrap.h, line 61. [1] 54418 abort node index.js
I see the same on Ubuntu 14.04:
# nodejs nodeqt-demo.js
nodejs: /home/at/.node-gyp/0.10.30/src/node_object_wrap.h:61: static T* node::ObjectWrap::Unwrap(v8::Handle<v8::Object>) [with T = QApplicationWrap]: Assertion `handle->InternalFieldCount() > 0' failed.
zsh: abort nodejs nodeqt-demo.js
Ah, it needs a .bind()
: see https://github.com/arturadib/node-qt/pull/29