mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 17:26:24 +00:00

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
9 lines
101 B
Python
9 lines
101 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'binding',
|
|
'sources': [ 'binding.cc' ]
|
|
}
|
|
]
|
|
}
|