Re: [nodejs] Node.js Addon - Creating And Returning An Object

2015-05-08 Thread Ben Noordhuis
On Thu, May 7, 2015 at 6:08 AM, Jon Lederman wrote: > 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

[nodejs] Node.js Addon - Creating And Returning An Object

2015-05-07 Thread Jon Lederman
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 { pub