Hi all, I'm trying to create a factory function that creates a wrapped object and passes it as a parameter to a Javascript callback. I think I've almost got it, but I am trying to figure out how to convert a Local<Value> array back into an Arguments instance, so that I can pass it to a function of mine. I might be doing this mostly wrong, because this is my first attempt, and I'm learning by combing several different examples with some v8 documentation. I'll go ahead and show you some code:
My Group class contains the factory function where I return the wrapped object: https://github.com/ryancole/node-hdf5/blob/master/src/h5_group.cc#L31-72 My File class contains a function where I am trying to instantiate that wrapped Group object: https://github.com/ryancole/node-hdf5/blob/master/src/h5_file.cc#L99-112 I get the feeling that I must be doing something wrong here, since I don't see many people converting *to* Argument objects. What am I trying to achieve, exactly? A workflow like this, in my Javascript (Node.js): https://github.com/ryancole/node-hdf5/blob/master/test/hdf5.js#L8-12 Does anybody have some insight into where I've gone wrong? Thanks, Ryan -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
