« Previous | Next » 

Revision 15508589

ID15508589a163b0c9f09ac608281f9ebb015d4deb
Parent 00b4b7bb
Child f2107107

Added by isaacs over 11 years ago

addon: Pass module object to NODE_MODULE init function

mainly to allow native addons to export single functions on
rather than being restricted to operating on an existing
object.

Init functions now receive exports as the first argument, like
before, but also the module object as the second argument, if they
support it.

Related to #4634

cc: @rvagg

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences