Skip to content

Commit a66aad4

Browse files
mhdawsonaddaleax
authored andcommitted
doc: fixup NODE_EXTERN -> NAPI_EXTERN
Seems like we missed updating doc when we changed from NODE_EXTERN to NAPI_EXTERN PR-URL: #20641 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent f263340 commit a66aad4

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

doc/api/n-api.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ TypeError [ERR_ERROR_1]
343343
added: v8.0.0
344344
-->
345345
```C
346-
NODE_EXTERN napi_status napi_throw(napi_env env, napi_value error);
346+
NAPI_EXTERN napi_status napi_throw(napi_env env, napi_value error);
347347
```
348348
- `[in] env`: The environment that the API is invoked under.
349349
- `[in] error`: The JavaScript value to be thrown.
@@ -357,7 +357,7 @@ This API throws the JavaScript value provided.
357357
added: v8.0.0
358358
-->
359359
```C
360-
NODE_EXTERN napi_status napi_throw_error(napi_env env,
360+
NAPI_EXTERN napi_status napi_throw_error(napi_env env,
361361
const char* code,
362362
const char* msg);
363363
```
@@ -375,7 +375,7 @@ This API throws a JavaScript `Error` with the text provided.
375375
added: v8.0.0
376376
-->
377377
```C
378-
NODE_EXTERN napi_status napi_throw_type_error(napi_env env,
378+
NAPI_EXTERN napi_status napi_throw_type_error(napi_env env,
379379
const char* code,
380380
const char* msg);
381381
```
@@ -393,7 +393,7 @@ This API throws a JavaScript `TypeError` with the text provided.
393393
added: v8.0.0
394394
-->
395395
```C
396-
NODE_EXTERN napi_status napi_throw_range_error(napi_env env,
396+
NAPI_EXTERN napi_status napi_throw_range_error(napi_env env,
397397
const char* code,
398398
const char* msg);
399399
```
@@ -411,7 +411,7 @@ This API throws a JavaScript `RangeError` with the text provided.
411411
added: v8.0.0
412412
-->
413413
```C
414-
NODE_EXTERN napi_status napi_is_error(napi_env env,
414+
NAPI_EXTERN napi_status napi_is_error(napi_env env,
415415
napi_value value,
416416
bool* result);
417417
```
@@ -429,7 +429,7 @@ This API queries a `napi_value` to check if it represents an error object.
429429
added: v8.0.0
430430
-->
431431
```C
432-
NODE_EXTERN napi_status napi_create_error(napi_env env,
432+
NAPI_EXTERN napi_status napi_create_error(napi_env env,
433433
napi_value code,
434434
napi_value msg,
435435
napi_value* result);
@@ -450,7 +450,7 @@ This API returns a JavaScript `Error` with the text provided.
450450
added: v8.0.0
451451
-->
452452
```C
453-
NODE_EXTERN napi_status napi_create_type_error(napi_env env,
453+
NAPI_EXTERN napi_status napi_create_type_error(napi_env env,
454454
napi_value code,
455455
napi_value msg,
456456
napi_value* result);
@@ -659,7 +659,7 @@ can only be called once.
659659
added: v8.0.0
660660
-->
661661
```C
662-
NODE_EXTERN napi_status napi_open_handle_scope(napi_env env,
662+
NAPI_EXTERN napi_status napi_open_handle_scope(napi_env env,
663663
napi_handle_scope* result);
664664
```
665665
- `[in] env`: The environment that the API is invoked under.
@@ -674,7 +674,7 @@ This API open a new scope.
674674
added: v8.0.0
675675
-->
676676
```C
677-
NODE_EXTERN napi_status napi_close_handle_scope(napi_env env,
677+
NAPI_EXTERN napi_status napi_close_handle_scope(napi_env env,
678678
napi_handle_scope scope);
679679
```
680680
- `[in] env`: The environment that the API is invoked under.
@@ -692,7 +692,7 @@ This API can be called even if there is a pending JavaScript exception.
692692
added: v8.0.0
693693
-->
694694
```C
695-
NODE_EXTERN napi_status
695+
NAPI_EXTERN napi_status
696696
napi_open_escapable_handle_scope(napi_env env,
697697
napi_handle_scope* result);
698698
```
@@ -709,7 +709,7 @@ to the outer scope.
709709
added: v8.0.0
710710
-->
711711
```C
712-
NODE_EXTERN napi_status
712+
NAPI_EXTERN napi_status
713713
napi_close_escapable_handle_scope(napi_env env,
714714
napi_handle_scope scope);
715715
```
@@ -793,7 +793,7 @@ individual count.
793793
added: v8.0.0
794794
-->
795795
```C
796-
NODE_EXTERN napi_status napi_create_reference(napi_env env,
796+
NAPI_EXTERN napi_status napi_create_reference(napi_env env,
797797
napi_value value,
798798
int initial_refcount,
799799
napi_ref* result);
@@ -815,7 +815,7 @@ to the `Object` passed in.
815815
added: v8.0.0
816816
-->
817817
```C
818-
NODE_EXTERN napi_status napi_delete_reference(napi_env env, napi_ref ref);
818+
NAPI_EXTERN napi_status napi_delete_reference(napi_env env, napi_ref ref);
819819
```
820820

821821
- `[in] env`: The environment that the API is invoked under.
@@ -832,7 +832,7 @@ This API can be called even if there is a pending JavaScript exception.
832832
added: v8.0.0
833833
-->
834834
```C
835-
NODE_EXTERN napi_status napi_reference_ref(napi_env env,
835+
NAPI_EXTERN napi_status napi_reference_ref(napi_env env,
836836
napi_ref ref,
837837
int* result);
838838
```
@@ -850,7 +850,7 @@ passed in and returns the resulting reference count.
850850
added: v8.0.0
851851
-->
852852
```C
853-
NODE_EXTERN napi_status napi_reference_unref(napi_env env,
853+
NAPI_EXTERN napi_status napi_reference_unref(napi_env env,
854854
napi_ref ref,
855855
int* result);
856856
```
@@ -868,7 +868,7 @@ passed in and returns the resulting reference count.
868868
added: v8.0.0
869869
-->
870870
```C
871-
NODE_EXTERN napi_status napi_get_reference_value(napi_env env,
871+
NAPI_EXTERN napi_status napi_get_reference_value(napi_env env,
872872
napi_ref ref,
873873
napi_value* result);
874874
```

0 commit comments

Comments
 (0)