#include #include void Method(const v8::FunctionCallbackInfo& args) { v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8::HandleScope scope(isolate); args.GetReturnValue().Set(v8::String::NewFromUtf8(isolate, "world")); } void init(v8::Handle exports, v8::Handle module) { NODE_SET_METHOD(module, "exports", Method); } NODE_MODULE(binding, init);