mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
node-api: make object property arrays const
Signed-off-by: umuoy1 <burningdian@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65621 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
This commit is contained in:
1 parent
b282765d99
commit
d983942636
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
@@ -1615,8 +1615,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);
|
||||
|
||||
Reference in new issue
Block a user