Skip to content

Commit 7b7e8e1

Browse files
committed
feat: static hermes
1 parent 1492213 commit 7b7e8e1

64 files changed

Lines changed: 14010 additions & 4 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test-app/runtime/src/main/cpp/napi/common/js_native_api.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
#define SRC_JS_NATIVE_API_H_
33

44
#include "js_native_api_types.h"
5-
#include <uchar.h>
5+
6+
#if !defined __cplusplus || (defined(_MSC_VER) && _MSC_VER < 1900)
7+
typedef uint16_t char16_t;
8+
#endif
69

710
EXTERN_C_START
811

@@ -459,7 +462,7 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_get_date_value(napi_env env,
459462
// Add finalizer for pointer
460463
NAPI_EXTERN napi_status NAPI_CDECL napi_add_finalizer(napi_env env,
461464
napi_value js_object,
462-
void *finalize_data,
465+
void *native_object,
463466
napi_finalize finalize_cb,
464467
void *finalize_hint,
465468
napi_ref *result);

0 commit comments

Comments
 (0)