@@ -729,8 +729,8 @@ is provided which returns a `napi_extended_error_info` structure.
729
729
The format of the `napi_extended_error_info` structure is as follows:
730
730
731
731
<!-- YAML
732
- added: v10.6 .0
733
- napiVersion: 4
732
+ added: v8.0 .0
733
+ napiVersion: 1
734
734
-->
735
735
736
736
```C
@@ -1369,7 +1369,7 @@ napiVersion: 1
1369
1369
```C
1370
1370
NAPI_EXTERN napi_status napi_create_reference(napi_env env,
1371
1371
napi_value value,
1372
- int initial_refcount,
1372
+ uint32_t initial_refcount,
1373
1373
napi_ref* result);
1374
1374
```
1375
1375
@@ -1412,7 +1412,7 @@ napiVersion: 1
1412
1412
```C
1413
1413
NAPI_EXTERN napi_status napi_reference_ref(napi_env env,
1414
1414
napi_ref ref,
1415
- int * result);
1415
+ uint32_t * result);
1416
1416
```
1417
1417
1418
1418
* `[in] env`: The environment that the API is invoked under.
@@ -1433,7 +1433,7 @@ napiVersion: 1
1433
1433
```C
1434
1434
NAPI_EXTERN napi_status napi_reference_unref(napi_env env,
1435
1435
napi_ref ref,
1436
- int * result);
1436
+ uint32_t * result); );
1437
1437
```
1438
1438
1439
1439
* `[in] env`: The environment that the API is invoked under.
@@ -1840,6 +1840,7 @@ structure, in most cases using a `TypedArray` will suffice.
1840
1840
#### napi_create_date
1841
1841
<!-- YAML
1842
1842
added: v11.11.0
1843
+ napiVersion: 5
1843
1844
-->
1844
1845
1845
1846
```C
@@ -2519,6 +2520,7 @@ This API returns various properties of a `DataView`.
2519
2520
#### napi_get_date_value
2520
2521
<!-- YAML
2521
2522
added: v11.11.0
2523
+ napiVersion: 5
2522
2524
-->
2523
2525
2524
2526
```C
@@ -3139,6 +3141,7 @@ This API checks if the `Object` passed in is a buffer.
3139
3141
### napi_is_date
3140
3142
<!-- YAML
3141
3143
added: v11.11.0
3144
+ napiVersion: 5
3142
3145
-->
3143
3146
3144
3147
```C
@@ -3829,12 +3832,12 @@ napiVersion: 1
3829
3832
-->
3830
3833
3831
3834
```C
3832
- napi_status napi_call_function(napi_env env,
3833
- napi_value recv,
3834
- napi_value func,
3835
- int argc,
3836
- const napi_value* argv,
3837
- napi_value* result)
3835
+ NAPI_EXTERN napi_status napi_call_function(napi_env env,
3836
+ napi_value recv,
3837
+ napi_value func,
3838
+ size_t argc,
3839
+ const napi_value* argv,
3840
+ napi_value* result);
3838
3841
```
3839
3842
3840
3843
* `[in] env`: The environment that the API is invoked under.
@@ -4299,6 +4302,7 @@ JavaScript object becomes garbage-collected.
4299
4302
4300
4303
<!-- YAML
4301
4304
added: v8.0.0
4305
+ napiVersion: 5
4302
4306
-->
4303
4307
4304
4308
```C
@@ -4565,13 +4569,13 @@ changes:
4565
4569
-->
4566
4570
4567
4571
```C
4568
- napi_status napi_make_callback(napi_env env,
4569
- napi_async_context async_context,
4570
- napi_value recv,
4571
- napi_value func,
4572
- int argc,
4573
- const napi_value* argv,
4574
- napi_value* result)
4572
+ NAPI_EXTERN napi_status napi_make_callback(napi_env env,
4573
+ napi_async_context async_context,
4574
+ napi_value recv,
4575
+ napi_value func,
4576
+ size_t argc,
4577
+ const napi_value* argv,
4578
+ napi_value* result);
4575
4579
```
4576
4580
4577
4581
* `[in] env`: The environment that the API is invoked under.
0 commit comments