Skip to content

Commit

Permalink
doc: Added required return to example (#793)
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node-addon-api#793
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
wroy7860 committed Aug 24, 2020
1 parent 1b4b3dc commit d930fcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Value Fn(const CallbackInfo& info) {

Object Init(Env env, Object exports) {
exports.Set(String::New(env, "fn"), Function::New<Fn>(env));
return exports;
}

NODE_API_MODULE(NODE_GYP_MODULE_NAME, Init)
Expand Down

0 comments on commit d930fcd

Please sign in to comment.