mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Remove a superfluos persistent from test_constructor_name.c. PR-URL: https://github.com/nodejs/node/pull/20299 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
19 lines
455 B
C
19 lines
455 B
C
#include <node_api.h>
|
|
#include "../common.h"
|
|
|
|
static napi_value New(napi_env env, napi_callback_info info) {
|
|
napi_value _this;
|
|
NAPI_CALL(env, napi_get_cb_info(env, info, NULL, NULL, &_this, NULL));
|
|
|
|
return _this;
|
|
}
|
|
|
|
static napi_value Init(napi_env env, napi_value exports) {
|
|
napi_value cons;
|
|
NAPI_CALL(env, napi_define_class(
|
|
env, "MyObject_Extra", 8, New, NULL, 0, NULL, &cons));
|
|
return cons;
|
|
}
|
|
|
|
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
|