Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c818cf

Browse filesBrowse files
Gabriel SchulhofMylesBorins
authored andcommitted
n-api: remove extra reference from test
PR-URL: #18542 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 4bf8b6a commit 9c818cf
Copy full SHA for 9c818cf

File tree

Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Open diff view settings
Collapse file

‎test/addons-napi/test_constructor/test_constructor.c‎

Copy file name to clipboardExpand all lines: test/addons-napi/test_constructor/test_constructor.c
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
static double value_ = 1;
55
static double static_value_ = 10;
6-
napi_ref constructor_;
76

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

83-
NAPI_CALL(env, napi_create_reference(env, cons, 1, &constructor_));
84-
8582
return cons;
8683
}
8784

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.