summaryrefslogtreecommitdiff
path: root/test/js-native-api
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-10-24 15:19:07 -0700
committerRich Trott <rtrott@gmail.com>2019-10-26 16:33:24 -0700
commit72346bd8d43477273419049ab68a5c6611480a92 (patch)
tree5519d5ba59ed5d9764de18990eff72f152faafd9 /test/js-native-api
parentab78d4df34a7698c45fca0b81300fd02fc4add7b (diff)
downloadandroid-node-v8-72346bd8d43477273419049ab68a5c6611480a92.tar.gz
android-node-v8-72346bd8d43477273419049ab68a5c6611480a92.tar.bz2
android-node-v8-72346bd8d43477273419049ab68a5c6611480a92.zip
doc: remove "it is important to" phrasing
Instead of telling someone "It is important to do X", just tell them to "Do X." PR-URL: https://github.com/nodejs/node/pull/30108 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/js-native-api')
-rw-r--r--test/js-native-api/8_passing_wrapped/myobject.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/js-native-api/8_passing_wrapped/myobject.cc b/test/js-native-api/8_passing_wrapped/myobject.cc
index 0c9ca90f52..28e207a424 100644
--- a/test/js-native-api/8_passing_wrapped/myobject.cc
+++ b/test/js-native-api/8_passing_wrapped/myobject.cc
@@ -51,10 +51,9 @@ napi_value MyObject::New(napi_env env, napi_callback_info info) {
obj->env_ = env;
- // It is important that the below call to napi_wrap() be such that we request
- // a reference to the wrapped object via the out-parameter, because this
- // ensures that we test the code path that deals with a reference that is
- // destroyed from its own finalizer.
+ // The below call to napi_wrap() must request a reference to the wrapped
+ // object via the out-parameter, because this ensures that we test the code
+ // path that deals with a reference that is destroyed from its own finalizer.
NAPI_CALL(env, napi_wrap(env,
_this,
obj,