Skip to content
Browse files

test: fix compiler warning in n-api test

Missed in ca786c3. This does
not actually affect the outcome because returning `nullptr` or
`this` from a constructor has the same effect.

PR-URL: #12318
Reviewed-By: Colin Ihrig <>
Reviewed-By: James M Snell <>
Reviewed-By: Michael Dawson <>
  • Loading branch information...
addaleax committed Apr 10, 2017
1 parent 3900cf6 commit 8bd26d3aea0c3964881bfbd045080abea3f71012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/addons-napi/test_constructor/test_constructor.c
@@ -40,7 +40,7 @@ napi_value Echo(napi_env env, napi_callback_info info) {

napi_value New(napi_env env, napi_callback_info info) {
napi_value _this;
NAPI_CALL(env, napi_get_cb_info(env, info, NULL, NULL, NULL, &_this));
NAPI_CALL(env, napi_get_cb_info(env, info, NULL, NULL, &_this, NULL));

return _this;

0 comments on commit 8bd26d3

Please sign in to comment.
You can’t perform that action at this time.