Lines Matching refs:JavaScript
14 A lot of the Node.js codebase is around what the underlying JavaScript engine,
32 [JavaScript value handles][].
73 The `v8::Isolate` class represents a single JavaScript engine instance, in
74 particular a set of JavaScript objects that can refer to each other
78 APIs for managing the behaviour of the JavaScript engine or querying about its
83 and JavaScript objects from one `Isolate` cannot refer to objects from
96 ### V8 JavaScript values
98 V8 provides classes that mostly correspond to JavaScript types; for example,
99 `v8::Value` is a class representing any kind of JavaScript type, with
111 Both JavaScript values and `void*` pointers may be stored in such fields.
114 information associated with the JavaScript object.
119 object (`0` for regular JavaScript objects).
120 * `obj->GetInternalField(i)` to get a JavaScript value from an internal field.
121 * `obj->SetInternalField(i, v)` to store a JavaScript value in an
131 ### JavaScript value handles
133 All JavaScript values are accessed through the V8 API through so-called handles,
139 A `v8::Local` handle is a temporary pointer to a JavaScript object, where
143 Most of the V8 API uses `Local` handles to work with JavaScript values or return
156 The following JavaScript and C++ functions are mostly equivalent:
210 JavaScript code to create `HandleScope`s.
217 reference to a JavaScript object that can remain active as long as the engine
221 “GC roots”, meaning that they will keep the JavaScript object they refer to
244 garbage-collected while the JavaScript Engine instance is alive, even if
251 JavaScript allows multiple global objects and sets of built-in JavaScript
327 inside Node.js code, e.g. given an `Environment` instance `env` the JavaScript
329 creating a new JavaScript string.
412 // `internalBinding('cares_wrap')` in Node.js’s built-in JavaScript code:
524 The V8 engine provides multiple features to work with JavaScript exceptions,
530 as return values from API functions that can run JavaScript code and therefore
535 `.IsJust()`). If the `Maybe` is empty, then a JavaScript exception is pending.
557 * Calls that invoke *any* JavaScript code, including JavaScript code that is
558 provided from Node.js internals or V8 internals, will fail when JavaScript
563 It is not always obvious whether a V8 call will enter JavaScript. In addition
565 like `Map`s and `Set`s can also run V8-internal JavaScript code.
587 from the current function as soon as possible, and let execution in JavaScript
590 of that function and pass information about pending JavaScript exceptions along
635 // have performed type checking in a JavaScript wrapper function.
641 // Nothing to do, we can just return directly to JavaScript.
651 If there is a need to catch JavaScript exceptions in C++, V8 provides the
657 A `TryCatch` will catch regular JavaScript exceptions, as well as termination
660 and the exception object will not be a meaningful JavaScript value.
716 #### Calling into JavaScript
718 Calling into JavaScript is not allowed during cleanup. Worker threads explicitly
722 When calling into JavaScript without using [`MakeCallback()`][], check the
725 ## Classes associated with JavaScript objects
735 Inheriting from the `MemoryRetainer` class enables objects (both from JavaScript
747 A frequently recurring situation is that a JavaScript object and a C++ object
749 Node.js, and most classes that are associated with JavaScript objects are
758 The JavaScript object can be accessed as a `v8::Local<v8::Object>` by using
786 corresponding JavaScript object or untying the two.
790 method is called when the JavaScript object is garbage collected. By default,
811 reference to its associated JavaScript object. This can be useful when one
826 make calls into JavaScript without any JavaScript stack below, i.e. more or less
844 JavaScript” from the event loop, rather than making callbacks in some way.
848 `MakeCallback()` generally calls a method on the JavaScript object associated
884 from JavaScript. It is defined in [`handle_wrap.h`][].
945 inherit from this class and allow accessing the characters in a JavaScript
1001 // Turn `pwd` into a JavaScript object now; whenever we return from this
1009 [JavaScript value handles]: #js-handles