![]() |
V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
|
#include <v8.h>
Public Types | |
| enum | Status { kUninstantiated, kInstantiating, kInstantiated, kEvaluating, kEvaluated, kErrored } |
| typedef MaybeLocal< Module >(* | ResolveCallback) (Local< Context > context, Local< String > specifier, Local< Module > referrer) |
Public Member Functions | |
| Status | GetStatus () const |
| Local< Value > | GetException () const |
| int | GetModuleRequestsLength () const |
| Local< String > | GetModuleRequest (int i) const |
| Location | GetModuleRequestLocation (int i) const |
| int | GetIdentityHash () const |
| V8_WARN_UNUSED_RESULT Maybe< bool > | InstantiateModule (Local< Context > context, ResolveCallback callback) |
| V8_WARN_UNUSED_RESULT MaybeLocal< Value > | Evaluate (Local< Context > context) |
| Local< Value > | GetModuleNamespace () |
| Local< UnboundModuleScript > | GetUnboundModuleScript () |
| enum v8::Module::Status |
| MaybeLocal< Value > v8::Module::Evaluate | ( | Local< Context > | context | ) |
Evaluates the module and its dependencies.
If status is kInstantiated, run the module's code. On success, set status to kEvaluated and return the completion value; on failure, set status to kErrored and propagate the thrown exception (which is then also available via |GetException|).
| int v8::Module::GetIdentityHash | ( | ) | const |
Returns the ith module specifier in this module. i must be < GetModuleRequestsLength() and >= 0.
| int v8::Module::GetModuleRequestsLength | ( | ) | const |
| Module::Status v8::Module::GetStatus | ( | ) | const |
| Local< UnboundModuleScript > v8::Module::GetUnboundModuleScript | ( | ) |