mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
306 B
16 lines
306 B
12 years ago
|
#include <node.h>
|
||
|
#include <v8.h>
|
||
|
|
||
|
using namespace v8;
|
||
|
|
||
|
Handle<Value> Method(const Arguments& args) {
|
||
|
HandleScope scope;
|
||
|
return scope.Close(String::New("world"));
|
||
|
}
|
||
|
|
||
|
void init(Handle<Object> exports, Handle<Object> module) {
|
||
|
NODE_SET_METHOD(module, "exports", Method);
|
||
|
}
|
||
|
|
||
|
NODE_MODULE(binding, init);
|