@@ -1065,11 +1065,11 @@ JavaScript value to be thrown.
10651065The following utility functions are also available in case native code
10661066needs to throw an exception or determine if a `napi_value` is an instance
10671067of a JavaScript `Error` object: [`napi_throw_error`][],
1068- [`napi_throw_type_error`][], [`napi_throw_range_error`][], [`napi_throw_syntax_error `][] and [`napi_is_error`][].
1068+ [`napi_throw_type_error`][], [`napi_throw_range_error`][], [`node_api_throw_syntax_error `][] and [`napi_is_error`][].
10691069
10701070The following utility functions are also available in case native
10711071code needs to create an `Error` object: [`napi_create_error`][],
1072- [`napi_create_type_error`][], [`napi_create_range_error`][] and [`napi_create_syntax_error `][],
1072+ [`napi_create_type_error`][], [`napi_create_range_error`][] and [`node_api_create_syntax_error `][],
10731073where result is the `napi_value` that refers to the newly created
10741074JavaScript `Error` object.
10751075
@@ -1179,14 +1179,14 @@ Returns `napi_ok` if the API succeeded.
11791179
11801180This API throws a JavaScript `RangeError` with the text provided.
11811181
1182- #### `napi_throw_syntax_error `
1182+ #### `node_api_throw_syntax_error `
11831183
11841184<!-- YAML
11851185added: REPLACEME
11861186-->
11871187
11881188```c
1189- NAPI_EXTERN napi_status napi_throw_syntax_error (napi_env env,
1189+ NAPI_EXTERN napi_status node_api_throw_syntax_error (napi_env env,
11901190 const char* code,
11911191 const char* msg);
11921192```
@@ -1296,14 +1296,14 @@ Returns `napi_ok` if the API succeeded.
12961296
12971297This API returns a JavaScript `RangeError` with the text provided.
12981298
1299- #### `napi_create_syntax_error `
1299+ #### `node_api_create_syntax_error `
13001300
13011301<!-- YAML
13021302added: REPLACEME
13031303-->
13041304
13051305```c
1306- NAPI_EXTERN napi_status napi_create_syntax_error (napi_env env,
1306+ NAPI_EXTERN napi_status node_api_create_syntax_error (napi_env env,
13071307 napi_value code,
13081308 napi_value msg,
13091309 napi_value* result);
@@ -6300,7 +6300,7 @@ the add-on's file name during loading.
63006300[`napi_create_external_arraybuffer`]: #napi_create_external_arraybuffer
63016301[`napi_create_range_error`]: #napi_create_range_error
63026302[`napi_create_reference`]: #napi_create_reference
6303- [`napi_create_syntax_error `]: #napi_create_syntax_error
6303+ [`node_api_create_syntax_error `]: #node_api_create_syntax_error
63046304[`napi_create_type_error`]: #napi_create_type_error
63056305[`napi_define_class`]: #napi_define_class
63066306[`napi_delete_async_work`]: #napi_delete_async_work
@@ -6334,7 +6334,7 @@ the add-on's file name during loading.
63346334[`napi_threadsafe_function_call_js`]: #napi_threadsafe_function_call_js
63356335[`napi_throw_error`]: #napi_throw_error
63366336[`napi_throw_range_error`]: #napi_throw_range_error
6337- [`napi_throw_syntax_error `]: #napi_throw_syntax_error
6337+ [`node_api_throw_syntax_error `]: #node_api_throw_syntax_error
63386338[`napi_throw_type_error`]: #napi_throw_type_error
63396339[`napi_throw`]: #napi_throw
63406340[`napi_unwrap`]: #napi_unwrap
0 commit comments