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