v8
5.5.372 (node 7.10.1)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Types | |
typedef MaybeLocal< Module >(* | ResolveCallback) (Local< Context > context, Local< String > specifier, Local< Module > referrer, Local< Value > data) |
Public Member Functions | |
int | GetModuleRequestsLength () const |
Local< String > | GetModuleRequest (int i) const |
void | SetEmbedderData (Local< Value > data) |
Local< Value > | GetEmbedderData () const |
V8_WARN_UNUSED_RESULT bool | Instantiate (Local< Context > context, ResolveCallback callback, Local< Value > callback_data=Local< Value >()) |
V8_WARN_UNUSED_RESULT MaybeLocal< Value > | Evaluate (Local< Context > context) |
This is an unfinished experimental feature, and is only exposed here for internal testing purposes. DO NOT USE.
A compiled JavaScript module.
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate | ( | Local< Context > | context | ) |
ModuleEvaluation
Returns the ith module specifier in this module. i must be < GetModuleRequestsLength() and >= 0.
int GetModuleRequestsLength | ( | ) | const |
Returns the number of modules requested by this module.
V8_WARN_UNUSED_RESULT bool Instantiate | ( | Local< Context > | context, |
ResolveCallback | callback, | ||
Local< Value > | callback_data = Local< Value >() |
||
) |
ModuleDeclarationInstantiation
Returns false if an exception occurred during instantiation.