From 5076cf3de789e4160e42d33878ce6b2505854126 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 18 Nov 2017 20:01:57 -0800 Subject: doc: use "JavaScript" instead of "Javascript" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17163 Backport-PR-URL: https://github.com/nodejs/node/pull/17765 Reviewed-By: Michaƫl Zasso Reviewed-By: Vse Mozhet Byt Reviewed-By: Benjamin Gruenbaum Reviewed-By: Alexey Orlenko Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- doc/api/n-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/api') diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 1d2004cea26..e1e58da6928 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 -- cgit v1.2.3