src: update MakeCallback() function prototype
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 27 Jan 2014 02:58:16 +0000 (18:58 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Wed, 5 Feb 2014 19:49:00 +0000 (11:49 -0800)
commit1f2f3fa83a93d7b21306f1fd0b1e1793cc3a5b2c
tree63d7047003975d8868064186918ddf9483cb3ac2
parent528a3ce3ed0df7aaafb02877495c94caa1d77355
src: update MakeCallback() function prototype

Make it possible to invoke MakeCallback() on a v8::Value but only for
the variant that takes a v8::Function as the thing to call.

The const char* and v8::String variants still require a v8::Object
because the function to call is looked up as a property on the receiver,
but that only works when the receiver is an object, not a primitive.
src/node.cc
src/node.h
src/node_internals.h