Skip to content

Commit 0b2ea60

Browse files
committed
add NanReturnUndefined() to exposed method
fixes #15
1 parent 0720dcd commit 0b2ea60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

3_callbacks/nan/addon.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ NAN_METHOD(RunCallback) {
99
const unsigned argc = 1;
1010
Local<Value> argv[argc] = { NanNew("hello world") };
1111
NanMakeCallback(NanGetCurrentContext()->Global(), cb, argc, argv);
12+
13+
NanReturnUndefined();
1214
}
1315

1416
void Init(Handle<Object> exports, Handle<Object> module) {

0 commit comments

Comments
 (0)