Skip to content

Commit

Permalink
doc: use "JavaScript" instead of "Javascript"
Browse files Browse the repository at this point in the history
Backport-PR-URL: #19447
PR-URL: #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>
  • Loading branch information
Trott authored and MylesBorins committed Apr 16, 2018
1 parent b20c278 commit c685212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ us a report nonetheless.

- [#14519](https://github.com/nodejs/node/issues/14519): _Internal domain
function can be used to cause segfaults_. Causing program termination using
either the public Javascript APIs or the private bindings layer APIs requires
the ability to execute arbitrary Javascript code, which is already the highest
either the public JavaScript APIs or the private bindings layer APIs requires
the ability to execute arbitrary JavaScript code, which is already the highest
level of privilege possible.

- [#12141](https://github.com/nodejs/node/pull/12141): _buffer: zero fill
Expand Down
4 changes: 2 additions & 2 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,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
Expand Down Expand Up @@ -2861,7 +2861,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
Expand Down

0 comments on commit c685212

Please sign in to comment.