copy from http://nodejs.org/api/addons.html#addons_function_arguments