File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
2-js-to-native-conversion/8_passing_wrapped/napi Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ MyObject::~MyObject() {
1111void MyObject::Destructor (napi_env env,
1212 void * nativeObject,
1313 void * /* finalize_hint*/ ) {
14- reinterpret_cast <MyObject*>(nativeObject)-> ~MyObject ( );
14+ delete reinterpret_cast <MyObject*>(nativeObject);
1515}
1616
1717#define DECLARE_NAPI_METHOD (name, func ) \
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ MyObject::~MyObject() {
1010void MyObject::Destructor (napi_env env,
1111 void * nativeObject,
1212 void * /* finalize_hint*/ ) {
13- reinterpret_cast <MyObject*>(nativeObject)-> ~MyObject ( );
13+ delete reinterpret_cast <MyObject*>(nativeObject);
1414}
1515
1616#define DECLARE_NAPI_METHOD (name, func ) \
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ MyObject::~MyObject() {
1010void MyObject::Destructor (napi_env env,
1111 void * nativeObject,
1212 void * /* finalize_hint*/ ) {
13- reinterpret_cast <MyObject*>(nativeObject)-> ~MyObject ( );
13+ delete reinterpret_cast <MyObject*>(nativeObject);
1414}
1515
1616napi_status MyObject::Init (napi_env env) {
You can’t perform that action at this time.
0 commit comments