Skip to content

Commit

Permalink
fixup! src,doc: add C++ internals documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Nov 20, 2019
1 parent 2445c17 commit e1ca24c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ particular a set of JavaScript objects that can refer to each other
(the “heap”).

The `v8::Isolate` is often passed to other V8 API functions, and provides some
APIs for managing the behaviour of the JavaScript engine.
APIs for managing the behaviour of the JavaScript engine or querying about its
current state or statistics such as memory usage.

V8 APIs are not thread-safe unless explicitly specified. In a typical Node.js
application, the main thread and any `Worker` threads each have one `Isolate`,
Expand Down Expand Up @@ -309,6 +310,10 @@ void ArrayBufferViewHasBuffer(const FunctionCallbackInfo<Value>& args) {
}
```

(Namespaces are usually omitted through the use of `using` statements in the
Node.js source code.)


`args[n]` is a `Local<Value>` that represents the n-th argument passed to the
function. `args.This()` is the `this` value inside this function call.

Expand Down

0 comments on commit e1ca24c

Please sign in to comment.