aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-11-18 20:01:57 -0800
committerJames M Snell <jasnell@gmail.com>2017-11-22 08:24:50 -0800
commit8f2c366bb213c0d4487e66384d4a4ecd9b4a45f8 (patch)
treeb255867c79232a86b6a84d06011aeedc3936c26c /doc
parent911f16329e1aa58fa52592a132c7072c3b5a3a19 (diff)
downloadandroid-node-v8-8f2c366bb213c0d4487e66384d4a4ecd9b4a45f8.tar.gz
android-node-v8-8f2c366bb213c0d4487e66384d4a4ecd9b4a45f8.tar.bz2
android-node-v8-8f2c366bb213c0d4487e66384d4a4ecd9b4a45f8.zip
doc: use "JavaScript" instead of "Javascript"
PR-URL: https://github.com/nodejs/node/pull/17163 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/n-api.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md
index 0e94396665..f1587f4848 100644
--- a/doc/api/n-api.md
+++ b/doc/api/n-api.md
@@ -204,7 +204,7 @@ typedef void (*napi_async_complete_callback)(napi_env env,
```
## Error Handling
-N-API uses both return values and Javascript exceptions for error handling.
+N-API uses both return values and JavaScript exceptions for error handling.
The following sections explain the approach for each case.
### Return values
@@ -2863,7 +2863,7 @@ Returns `napi_ok` if the API succeeded.
This API allows an add-on author to create a function object in native code.
This is the primary mechanism to allow calling *into* the add-on's native code
-*from* Javascript.
+*from* JavaScript.
*Note*: The newly created function is not automatically visible from
script after this call. Instead, a property must be explicitly set on any