Datasets:
File size: 1,676 Bytes
0e239c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | diff --git a/src/js_native_api.h b/src/js_native_api.h
index d2375ecd32..2a36c4e3dd 100644
--- a/src/js_native_api.h
+++ b/src/js_native_api.h
@@ -55,8 +55,8 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_object(napi_env env,
NAPI_EXTERN napi_status NAPI_CDECL
node_api_create_object_with_properties(napi_env env,
napi_value prototype_or_null,
- napi_value* property_names,
- napi_value* property_values,
+ const napi_value* property_names,
+ const napi_value* property_values,
size_t property_count,
napi_value* result);
#endif // NAPI_EXPERIMENTAL
diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc
index 5e533d2a68..6ae976df29 100644
--- a/src/js_native_api_v8.cc
+++ b/src/js_native_api_v8.cc
@@ -1621,8 +1621,8 @@ napi_status NAPI_CDECL napi_create_object(napi_env env, napi_value* result) {
napi_status NAPI_CDECL
node_api_create_object_with_properties(napi_env env,
napi_value prototype_or_null,
- napi_value* property_names,
- napi_value* property_values,
+ const napi_value* property_names,
+ const napi_value* property_values,
size_t property_count,
napi_value* result) {
CHECK_ENV_NOT_IN_GC(env);
|