Skip to content

Commit bd91f06

Browse files
committed
move originals to node_0.10 subdir
1 parent 8970b00 commit bd91f06

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Handle<Value> Method(const Arguments& args) {
88
return scope.Close(String::New("world"));
99
}
1010

11-
void init(Handle<Object> exports) {
11+
void Init(Handle<Object> exports) {
1212
exports->Set(String::NewSymbol("hello"),
1313
FunctionTemplate::New(Method)->GetFunction());
1414
}
1515

16-
NODE_MODULE(hello, init)
16+
NODE_MODULE(hello, Init)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"description": "Node.js Addons Example #1",
55
"main": "hello.js",
66
"private": true,
7+
"scripts": {
8+
"test": "node hello.js"
9+
},
710
"gypfile": true
811
}

0 commit comments

Comments
 (0)