@@ -727,8 +727,8 @@ is provided which returns a `napi_extended_error_info` structure.
727
727
The format of the `napi_extended_error_info` structure is as follows:
728
728
729
729
<!-- YAML
730
- added: v10.6 .0
731
- napiVersion: 4
730
+ added: v8.0 .0
731
+ napiVersion: 1
732
732
-->
733
733
734
734
```C
@@ -1367,7 +1367,7 @@ napiVersion: 1
1367
1367
```C
1368
1368
NAPI_EXTERN napi_status napi_create_reference(napi_env env,
1369
1369
napi_value value,
1370
- int initial_refcount,
1370
+ uint32_t initial_refcount,
1371
1371
napi_ref* result);
1372
1372
```
1373
1373
@@ -1410,7 +1410,7 @@ napiVersion: 1
1410
1410
```C
1411
1411
NAPI_EXTERN napi_status napi_reference_ref(napi_env env,
1412
1412
napi_ref ref,
1413
- int * result);
1413
+ uint32_t * result);
1414
1414
```
1415
1415
1416
1416
* `[in] env`: The environment that the API is invoked under.
@@ -1431,7 +1431,7 @@ napiVersion: 1
1431
1431
```C
1432
1432
NAPI_EXTERN napi_status napi_reference_unref(napi_env env,
1433
1433
napi_ref ref,
1434
- int * result);
1434
+ uint32_t * result); );
1435
1435
```
1436
1436
1437
1437
* `[in] env`: The environment that the API is invoked under.
@@ -1838,6 +1838,7 @@ structure, in most cases using a `TypedArray` will suffice.
1838
1838
#### napi_create_date
1839
1839
<!-- YAML
1840
1840
added: v11.11.0
1841
+ napiVersion: 5
1841
1842
-->
1842
1843
1843
1844
```C
@@ -2517,6 +2518,7 @@ This API returns various properties of a `DataView`.
2517
2518
#### napi_get_date_value
2518
2519
<!-- YAML
2519
2520
added: v11.11.0
2521
+ napiVersion: 5
2520
2522
-->
2521
2523
2522
2524
```C
@@ -3137,6 +3139,7 @@ This API checks if the `Object` passed in is a buffer.
3137
3139
### napi_is_date
3138
3140
<!-- YAML
3139
3141
added: v11.11.0
3142
+ napiVersion: 5
3140
3143
-->
3141
3144
3142
3145
```C
@@ -3803,12 +3806,12 @@ napiVersion: 1
3803
3806
-->
3804
3807
3805
3808
```C
3806
- napi_status napi_call_function(napi_env env,
3807
- napi_value recv,
3808
- napi_value func,
3809
- int argc,
3810
- const napi_value* argv,
3811
- napi_value* result)
3809
+ NAPI_EXTERN napi_status napi_call_function(napi_env env,
3810
+ napi_value recv,
3811
+ napi_value func,
3812
+ size_t argc,
3813
+ const napi_value* argv,
3814
+ napi_value* result);
3812
3815
```
3813
3816
3814
3817
* `[in] env`: The environment that the API is invoked under.
@@ -4273,6 +4276,7 @@ JavaScript object becomes garbage-collected.
4273
4276
4274
4277
<!-- YAML
4275
4278
added: v8.0.0
4279
+ napiVersion: 5
4276
4280
-->
4277
4281
4278
4282
```C
@@ -4539,13 +4543,13 @@ changes:
4539
4543
-->
4540
4544
4541
4545
```C
4542
- napi_status napi_make_callback(napi_env env,
4543
- napi_async_context async_context,
4544
- napi_value recv,
4545
- napi_value func,
4546
- int argc,
4547
- const napi_value* argv,
4548
- napi_value* result)
4546
+ NAPI_EXTERN napi_status napi_make_callback(napi_env env,
4547
+ napi_async_context async_context,
4548
+ napi_value recv,
4549
+ napi_value func,
4550
+ size_t argc,
4551
+ const napi_value* argv,
4552
+ napi_value* result);
4549
4553
```
4550
4554
4551
4555
* `[in] env`: The environment that the API is invoked under.
0 commit comments