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 <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
Marlyfleitas committed Aug 24, 2020
1 parent 25c0051 commit 86c8d2a
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 86c8d2a

Please sign in to comment.