Skip to content

Commit

Permalink
n-api: remove extra reference from test
Browse files Browse the repository at this point in the history
PR-URL: #18542
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
Gabriel Schulhof committed Feb 6, 2018
1 parent a555397 commit d379db3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/addons-napi/test_constructor/test_constructor.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

static double value_ = 1;
static double static_value_ = 10;
napi_ref constructor_;

napi_value GetValue(napi_env env, napi_callback_info info) {
size_t argc = 0;
Expand Down Expand Up @@ -80,8 +79,6 @@ napi_value Init(napi_env env, napi_value exports) {
NAPI_CALL(env, napi_define_class(env, "MyObject", NAPI_AUTO_LENGTH, New,
NULL, sizeof(properties)/sizeof(*properties), properties, &cons));

NAPI_CALL(env, napi_create_reference(env, cons, 1, &constructor_));

return cons;
}

Expand Down

0 comments on commit d379db3

Please sign in to comment.