Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
retain message about null-termination
  • Loading branch information
Gabriel Schulhof committed Feb 8, 2021
commit 2d017d4d56b0412ba35d307890280bc610cc90f7
4 changes: 2 additions & 2 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5977,8 +5977,8 @@ node_api_get_module_file_name(napi_env env, const char** result);
* `[in] env`: The environment that the API is invoked under.
* `[out] result`: A URL containing the absolute path of the
location from which the add-on was loaded. For a file on the local
file system it will start with `file://`. The string is owned by `env` and
must not be modified or freed.
file system it will start with `file://`. The string is null-terminated and
owned by `env` and must thus not be modified or freed.

`result` may be an empty string if the add-on loading process fails to establish
the add-on's file name during loading.
Expand Down