On 08/02/2013, at 23:45, Isaac Schlueter wrote: > On Fri, Feb 8, 2013 at 1:46 PM, Jorge Chamorro <jo...@jorgechamorro.com> > wrote: >>> * addon: Pass module object to NODE_MODULE init function (isaacs, Rod Vagg) >> >> What does this mean exactly, please? > > It means that your init function is void(Handle<Object> exports, > Handle<Object> module) instead of void(Handle<Object> exports), so you > can do "export a single thing via module.exports=blah" pattern from > C++ addons. > > Check the docs: > http://nodejs.org/docs/v0.9.9/api/addons.html#addons_object_factory
Can the thing I export be a function? Thanks, -- ( Jorge )(); -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- 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 nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.