Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 255 Bytes
#include <v8.h>
#include <node.h>
using namespace node;
using namespace v8;
static Handle<Value> foo(const Arguments& args)
{
return String::New("Hello World");
}
extern "C" void init(Handle<Object> target)
{
NODE_SET_METHOD(target, "foo", foo);
}
Something went wrong with that request. Please try again.