summaryrefslogtreecommitdiff
path: root/test/js-native-api/8_passing_wrapped/myobject.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/js-native-api/8_passing_wrapped/myobject.cc')
-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,