Lines Matching refs:JavaScript
14 A lot of the Node.js codebase is around what the underlying JavaScript engine,
32 [JavaScript value handles][].
77 The `v8::Isolate` class represents a single JavaScript engine instance, in
78 particular a set of JavaScript objects that can refer to each other
82 APIs for managing the behaviour of the JavaScript engine or querying about its
87 and JavaScript objects from one `Isolate` cannot refer to objects from
101 ### V8 JavaScript values
103 V8 provides classes that mostly correspond to JavaScript types; for example,
104 `v8::Value` is a class representing any kind of JavaScript type, with
117 Both JavaScript values and `void*` pointers may be stored in such fields.
120 information associated with the JavaScript object.
125 object (`0` for regular JavaScript objects).
126 * `obj->GetInternalField(i)` to get a JavaScript value from an internal field.
127 * `obj->SetInternalField(i, v)` to store a JavaScript value in an
138 ### JavaScript value handles
140 All JavaScript values are accessed through the V8 API through so-called handles,
147 A `v8::Local` handle is a temporary pointer to a JavaScript object, where
151 Most of the V8 API uses `Local` handles to work with JavaScript values or return
164 The following JavaScript and C++ functions are mostly equivalent:
218 JavaScript code to create `HandleScope`s.
226 reference to a JavaScript object that can remain active as long as the engine
230 “GC roots”, meaning that they will keep the JavaScript object they refer to
253 garbage-collected while the JavaScript Engine instance is alive, even if
261 JavaScript allows multiple global objects and sets of built-in JavaScript
335 The `Realm` class is a container for a set of JavaScript objects and functions
381 inside Node.js code, e.g. given an `Environment` instance `env` the JavaScript
383 creating a new JavaScript string.
468 // `internalBinding('cares_wrap')` in Node.js's built-in JavaScript code:
582 The V8 engine provides multiple features to work with JavaScript exceptions,
588 as return values from API functions that can run JavaScript code and therefore
593 `.IsJust()`). If the `Maybe` is empty, then a JavaScript exception is pending.
615 * Calls that invoke _any_ JavaScript code, including JavaScript code that is
616 provided from Node.js internals or V8 internals, will fail when JavaScript
621 It is not always obvious whether a V8 call will enter JavaScript. In addition
623 like `Map`s and `Set`s can also run V8-internal JavaScript code.
645 from the current function as soon as possible, and let execution in JavaScript
648 of that function and pass information about pending JavaScript exceptions along
693 // have performed type checking in a JavaScript wrapper function.
699 // Nothing to do, we can just return directly to JavaScript.
709 If there is a need to catch JavaScript exceptions in C++, V8 provides the
715 A `TryCatch` will catch regular JavaScript exceptions, as well as termination
718 and the exception object will not be a meaningful JavaScript value.
778 #### Calling into JavaScript
780 Calling into JavaScript is not allowed during cleanup. Worker threads explicitly
784 When calling into JavaScript without using [`MakeCallback()`][], check the
787 ## Classes associated with JavaScript objects
797 Inheriting from the `MemoryRetainer` class enables objects (both from JavaScript
810 A frequently recurring situation is that a JavaScript object and a C++ object
812 Node.js, and most classes that are associated with JavaScript objects are
821 The JavaScript object can be accessed as a `v8::Local<v8::Object>` by using
849 corresponding JavaScript object or untying the two.
853 method is called when the JavaScript object is garbage collected. By default,
874 reference to its associated JavaScript object. This can be useful when one
890 make calls into JavaScript without any JavaScript stack below, i.e. more or less
909 JavaScript” from the event loop, rather than making callbacks in some way.
913 `MakeCallback()` generally calls a method on the JavaScript object associated
950 from JavaScript. It is defined in [`handle_wrap.h`][].
1013 inherit from this class and allow accessing the characters in a JavaScript
1069 // Turn `pwd` into a JavaScript object now; whenever we return from this
1078 [JavaScript value handles]: #js-handles