Skip to content

Commit d2f37a0

Browse files
author
gretacb
committed
add some questions
1 parent b591904 commit d2f37a0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/module.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ static void init(v8::Local<v8::Object> target) {
1717
// expose HelloObject class
1818
object_sync::HelloObject::Init(target);
1919

20+
// Notice there are multiple "hello" functions as part of this module:
21+
// 1) standalone::hello
22+
// 2) HelloObject.hello()...not really sure why this function doesnt have to be expliclty exposed
23+
2024
// add more methods/classes below that youd like to use in node.js-world
2125
// then create a .cpp and .hpp file in /src for each new method
2226
}

src/object_sync/hello.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace object_sync {
1818
static NAN_METHOD(New);
1919
//static Nan::Persistent<v8::Function> &constructor();
2020

21-
// hello, custom sync method tied to module.cpp
21+
// hello, custom sync method tied to Init of this class somehow...?
2222
// method's logic lives in hello.cpp
2323
static NAN_METHOD(hello);
2424

0 commit comments

Comments
 (0)