| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ static napi_value CreateObjectWithPropertiesNew(napi_env env, | |||
| 58 | 58 | ||
| 59 | 59 | for (uint32_t i = 0; i < params.count; i++) { | |
| 60 | 60 | napi_value obj; | |
| 61 | - napi_create_object_with_properties( | ||
| 61 | + node_api_create_object_with_properties( | ||
| 62 | 62 | env, null_prototype, global_names, global_values, 20, &obj); | |
| 63 | 63 | } | |
| 64 | 64 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2645,7 +2645,7 @@ It is the equivalent of doing `new Object()` in JavaScript. | |||
| 2645 | 2645 | The JavaScript `Object` type is described in [Section object type][] of the | |
| 2646 | 2646 | ECMAScript Language Specification. | |
| 2647 | 2647 | ||
| 2648 | - #### `napi_create_object_with_properties` | ||
| 2648 | + #### `node_api_create_object_with_properties` | ||
| 2649 | 2649 | ||
| 2650 | 2650 | <!-- YAML | |
| 2651 | 2651 | added: v24.12.0 | |
@@ -2654,12 +2654,12 @@ added: v24.12.0 | |||
| 2654 | 2654 | > Stability: 1 - Experimental | |
| 2655 | 2655 | ||
| 2656 | 2656 | ```cpp | |
| 2657 | - napi_status napi_create_object_with_properties(napi_env env, | ||
| 2658 | - napi_value prototype_or_null, | ||
| 2659 | - const napi_value* property_names, | ||
| 2660 | - const napi_value* property_values, | ||
| 2661 | - size_t property_count, | ||
| 2662 | - napi_value* result) | ||
| 2657 | + napi_status node_api_create_object_with_properties(napi_env env, | ||
| 2658 | + napi_value prototype_or_null, | ||
| 2659 | + const napi_value* property_names, | ||
| 2660 | + const napi_value* property_values, | ||
| 2661 | + size_t property_count, | ||
| 2662 | + napi_value* result) | ||
| 2663 | 2663 | ``` | |
| 2664 | 2664 | ||
| 2665 | 2665 | * `[in] env`: The environment that the API is invoked under. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,12 +53,12 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_create_object(napi_env env, | |||
| 53 | 53 | #ifdef NAPI_EXPERIMENTAL | |
| 54 | 54 | #define NODE_API_EXPERIMENTAL_HAS_CREATE_OBJECT_WITH_PROPERTIES | |
| 55 | 55 | NAPI_EXTERN napi_status NAPI_CDECL | |
| 56 | - napi_create_object_with_properties(napi_env env, | ||
| 57 | - napi_value prototype_or_null, | ||
| 58 | - napi_value* property_names, | ||
| 59 | - napi_value* property_values, | ||
| 60 | - size_t property_count, | ||
| 61 | - napi_value* result); | ||
| 56 | + node_api_create_object_with_properties(napi_env env, | ||
| 57 | + napi_value prototype_or_null, | ||
| 58 | + napi_value* property_names, | ||
| 59 | + napi_value* property_values, | ||
| 60 | + size_t property_count, | ||
| 61 | + napi_value* result); | ||
| 62 | 62 | #endif // NAPI_EXPERIMENTAL | |
| 63 | 63 | ||
| 64 | 64 | NAPI_EXTERN napi_status NAPI_CDECL napi_create_array(napi_env env, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1613,12 +1613,12 @@ napi_status NAPI_CDECL napi_create_object(napi_env env, napi_value* result) { | |||
| 1613 | 1613 | } | |
| 1614 | 1614 | ||
| 1615 | 1615 | napi_status NAPI_CDECL | |
| 1616 | - napi_create_object_with_properties(napi_env env, | ||
| 1617 | - napi_value prototype_or_null, | ||
| 1618 | - napi_value* property_names, | ||
| 1619 | - napi_value* property_values, | ||
| 1620 | - size_t property_count, | ||
| 1621 | - napi_value* result) { | ||
| 1616 | + node_api_create_object_with_properties(napi_env env, | ||
| 1617 | + napi_value prototype_or_null, | ||
| 1618 | + napi_value* property_names, | ||
| 1619 | + napi_value* property_values, | ||
| 1620 | + size_t property_count, | ||
| 1621 | + napi_value* result) { | ||
| 1622 | 1622 | CHECK_ENV_NOT_IN_GC(env); | |
| 1623 | 1623 | CHECK_ARG(env, result); | |
| 1624 | 1624 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -732,7 +732,7 @@ static napi_value TestCreateObjectWithProperties(napi_env env, | |||
| 732 | 732 | napi_value null_prototype; | |
| 733 | 733 | NODE_API_CALL(env, napi_get_null(env, &null_prototype)); | |
| 734 | 734 | NODE_API_CALL(env, | |
| 735 | - napi_create_object_with_properties( | ||
| 735 | + node_api_create_object_with_properties( | ||
| 736 | 736 | env, null_prototype, names, values, 3, &result)); | |
| 737 | 737 | ||
| 738 | 738 | return result; | |
@@ -742,9 +742,9 @@ static napi_value TestCreateObjectWithPropertiesEmpty(napi_env env, | |||
| 742 | 742 | napi_callback_info info) { | |
| 743 | 743 | napi_value result; | |
| 744 | 744 | ||
| 745 | - NODE_API_CALL( | ||
| 746 | - env, | ||
| 747 | - napi_create_object_with_properties(env, NULL, NULL, NULL, 0, &result)); | ||
| 745 | + NODE_API_CALL(env, | ||
| 746 | + node_api_create_object_with_properties( | ||
| 747 | + env, NULL, NULL, NULL, 0, &result)); | ||
| 748 | 748 | ||
| 749 | 749 | return result; | |
| 750 | 750 | } | |
@@ -777,7 +777,7 @@ static napi_value TestCreateObjectWithCustomPrototype(napi_env env, | |||
| 777 | 777 | NODE_API_CALL(env, napi_create_int32(env, 42, &values[0])); | |
| 778 | 778 | ||
| 779 | 779 | NODE_API_CALL(env, | |
| 780 | - napi_create_object_with_properties( | ||
| 780 | + node_api_create_object_with_properties( | ||
| 781 | 781 | env, prototype, names, values, 1, &result)); | |
| 782 | 782 | ||
| 783 | 783 | return result; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments