v8  5.8.282(node8.0.0)
V8 is Google's open source JavaScript engine
Module Class Reference

#include <v8.h>

Public Types

typedef MaybeLocal< Module >(* ResolveCallback) (Local< Context > context, Local< String > specifier, Local< Module > referrer)

Public Member Functions

int GetModuleRequestsLength () const
Local< StringGetModuleRequest (int i) const
int GetIdentityHash () const
V8_WARN_UNUSED_RESULT bool Instantiate (Local< Context > context, ResolveCallback callback)
V8_WARN_UNUSED_RESULT MaybeLocal< ValueEvaluate (Local< Context > context)

Detailed Description

This is an unfinished experimental feature, and is only exposed here for internal testing purposes. DO NOT USE.

A compiled JavaScript module.

Definition at line 1066 of file v8.h.

Member Typedef Documentation

typedef MaybeLocal<Module>(* ResolveCallback) (Local< Context > context, Local< String > specifier, Local< Module > referrer)

Definition at line 1084 of file v8.h.

Member Function Documentation

V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate ( Local< Context context)


int GetIdentityHash ( ) const

Returns the identity hash for this object.

Local<String> GetModuleRequest ( int  i) const

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 


Returns false if an exception occurred during instantiation.

The documentation for this class was generated from the following file: