mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: rename target to exports for consistency
The doc/api/addons.md document contains examples of Addon Initialization functions that take a parameter named exports. This also matches the name used in node.cc when calling: mp->nm_register_func(exports, module, mp->nm_priv); Currently, a number of the tests name this same parameter target. This commit renames target to exports for consistency. PR-URL: https://github.com/nodejs/node/pull/9135 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
02f7e3aca3
commit
88cd4cfcb0
11 files changed
+23
-23
No files matched your search
@@ -29,8 +29,8 @@ void ParseEncoding(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||
args.GetReturnValue().Set(encoding_string);
|
||||
}
|
||||
|
||||
void Initialize(v8::Local<v8::Object> target) {
|
||||
NODE_SET_METHOD(target, "parseEncoding", ParseEncoding);
|
||||
void Initialize(v8::Local<v8::Object> exports) {
|
||||
NODE_SET_METHOD(exports, "parseEncoding", ParseEncoding);
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
Reference in new issue
Block a user