Skip to content

Commit 9d90aa1

Browse files
committed
make object property arrays const (nodejs/node#65621)
1 parent ca282f4 commit 9d90aa1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/emnapi/include/node/js_native_api.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_object(napi_env env,
6161
NAPI_EXTERN napi_status NAPI_CDECL
6262
node_api_create_object_with_properties(napi_env env,
6363
napi_value prototype_or_null,
64-
napi_value* property_names,
65-
napi_value* property_values,
64+
const napi_value* property_names,
65+
const napi_value* property_values,
6666
size_t property_count,
6767
napi_value* result);
6868
#endif // NAPI_EXPERIMENTAL

0 commit comments

Comments
 (0)