File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,9 @@ This API queries a `napi_value` to check if it represents an error object.
407
407
added: v8.0.0
408
408
-->
409
409
``` C
410
- NODE_EXTERN napi_status napi_create_error (napi_env env, const char* msg);
410
+ NODE_EXTERN napi_status napi_create_error (napi_env env,
411
+ const char* msg,
412
+ napi_value* result);
411
413
```
412
414
- `[in] env`: The environment that the API is invoked under.
413
415
- `[in] msg`: C string representing the text to be associated with.
@@ -422,7 +424,9 @@ This API returns a JavaScript Error with the text provided.
422
424
added: v8.0.0
423
425
-->
424
426
```C
425
- NODE_EXTERN napi_status napi_create_type_error(napi_env env, const char* msg);
427
+ NODE_EXTERN napi_status napi_create_type_error(napi_env env,
428
+ const char* msg,
429
+ napi_value* result);
426
430
```
427
431
- ` [in] env ` : The environment that the API is invoked under.
428
432
- ` [in] msg ` : C string representing the text to be associated with.
@@ -438,7 +442,9 @@ This API returns a JavaScript TypeError with the text provided.
438
442
added: v8.0.0
439
443
-->
440
444
``` C
441
- NODE_EXTERN napi_status napi_create_range_error (napi_env env, const char* msg);
445
+ NODE_EXTERN napi_status napi_create_range_error (napi_env env,
446
+ const char* msg,
447
+ napi_value* result);
442
448
```
443
449
- `[in] env`: The environment that the API is invoked under.
444
450
- `[in] msg`: C string representing the text to be associated with.
You can’t perform that action at this time.
0 commit comments