Lines Matching refs:JavaScript
14 A lot of the Node.js codebase is around what the underlying JavaScript engine,
32 [JavaScript value handles][].
49 The `v8::Isolate` class represents a single JavaScript engine instance, in
50 particular a set of JavaScript objects that can refer to each other
54 APIs for managing the behaviour of the JavaScript engine or querying about its
59 and JavaScript objects from one `Isolate` cannot refer to objects from
72 ### V8 JavaScript values
74 V8 provides classes that mostly correspond to JavaScript types; for example,
75 `v8::Value` is a class representing any kind of JavaScript type, with
87 Both JavaScript values and `void*` pointers may be stored in such fields.
90 information associated with the JavaScript object.
95 object (`0` for regular JavaScript objects).
96 * `obj->GetInternalField(i)` to get a JavaScript value from an internal field.
97 * `obj->SetInternalField(i, v)` to store a JavaScript value in an
107 ### JavaScript value handles
109 All JavaScript values are accessed through the V8 API through so-called handles,
115 A `v8::Local` handle is a temporary pointer to a JavaScript object, where
119 Most of the V8 API uses `Local` handles to work with JavaScript values or return
132 The following JavaScript and C++ functions are mostly equivalent:
188 JavaScript code to create `HandleScope`s.
195 reference to a JavaScript object that can remain active as long as the engine
199 “GC roots”, meaning that they will keep the JavaScript object they refer to
222 garbage-collected while the JavaScript Engine instance is alive, even if
229 JavaScript allows multiple global objects and sets of built-in JavaScript
305 inside Node.js code, e.g. given an `Environment` instance `env` the JavaScript
307 creating a new JavaScript string.
394 // `internalBinding('cares_wrap')` in Node.js’s built-in JavaScript code:
401 The V8 engine provides multiple features to work with JavaScript exceptions,
407 as return values from API functions that can run JavaScript code and therefore
412 `.IsJust()`). If the `Maybe` is empty, then a JavaScript exception is pending.
434 * Calls that invoke *any* JavaScript code, including JavaScript code that is
435 provided from Node.js internals or V8 internals, will fail when JavaScript
440 It is not always obvious whether a V8 call will enter JavaScript. In addition
442 like `Map`s and `Set`s can also run V8-internal JavaScript code.
464 from the current function as soon as possible, and let execution in JavaScript
467 of that function and pass information about pending JavaScript exceptions along
512 // have performed type checking in a JavaScript wrapper function.
518 // Nothing to do, we can just return directly to JavaScript.
528 If there is a need to catch JavaScript exceptions in C++, V8 provides the
534 A `TryCatch` will catch regular JavaScript exceptions, as well as termination
537 and the exception object will not be a meaningful JavaScript value.
593 #### Calling into JavaScript
595 Calling into JavaScript is not allowed during cleanup. Worker threads explicitly
599 When calling into JavaScript without using [`MakeCallback()`][], check the
602 ## Classes associated with JavaScript objects
612 Inheriting from the `MemoryRetainer` class enables objects (both from JavaScript
624 A frequently recurring situation is that a JavaScript object and a C++ object
626 Node.js, and most classes that are associated with JavaScript objects are
635 The JavaScript object can be accessed as a `v8::Local<v8::Object>` by using
663 corresponding JavaScript object or untying the two.
667 method is called when the JavaScript object is garbage collected. By default,
688 reference to its associated JavaScript object. This can be useful when one
703 make calls into JavaScript without any JavaScript stack below, i.e. more or less
721 JavaScript” from the event loop, rather than making callbacks in some way.
725 `MakeCallback()` generally calls a method on the JavaScript object associated
761 from JavaScript. It is defined in [`handle_wrap.h`][].
822 inherit from this class and allow accessing the characters in a JavaScript
878 // Turn `pwd` into a JavaScript object now; whenever we return from this
886 [JavaScript value handles]: #js-handles