diff --git a/doc/api/n-api.md b/doc/api/n-api.md index adb8647b399ecd..9aabbaea254f7e 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -360,11 +360,11 @@ added: v8.0.0 NODE_EXTERN napi_status napi_throw(napi_env env, napi_value error); ``` - `[in] env`: The environment that the API is invoked under. -- `[in] error`: The `napi_value` for the `Error` to be thrown. +- `[in] error`: The JavaScript value to be thrown. Returns `napi_ok` if the API succeeded. -This API throws the JavaScript `Error` provided. +This API throws the JavaScript value provided. #### napi_throw_error