I have the following two wrappers listed below.  I want the Api method of B 
to return an A in javascript.  How do I do this?  I can’t figure out how to 
construct the B class from the A Api method and return it?  Any help would 
be greatly appreciated.

Jon

class A : public node::ObjectWrap {
public:
 static void Init(v8::Handle<v8::Object> exports);

private:
 explicit A(Thing *thing);
 ~A();

 static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
 static void Api(const v8::FunctionCallbackInfo<v8::Value>& args);
 static v8::Persistent<v8::Function> constructor;

 ESLconnection* _esl_connection;
};

#endif

class B : public node::ObjectWrap {
public:
 static void Init(v8::Handle<v8::Object> exports);



private:

 ~B();
 explicit B(ESLevent *event);

};

#endif

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/9bab588e-09c6-46b4-a3de-3d7b3d534663%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to