V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::ScriptOrModule Class Reference

#include <v8.h>

Public Member Functions

Local< ValueGetResourceName ()
 
Local< PrimitiveArrayGetHostDefinedOptions ()
 

Detailed Description

A container type that holds relevant metadata for module loading.

This is passed back to the embedder as part of HostImportModuleDynamicallyCallback for module loading.

Definition at line 974 of file v8.h.

Member Function Documentation

◆ GetHostDefinedOptions()

Local< PrimitiveArray > v8::ScriptOrModule::GetHostDefinedOptions ( )

The options that were passed by the embedder as HostDefinedOptions to the ScriptOrigin.

Definition at line 2136 of file api.cc.

◆ GetResourceName()

Local< Value > v8::ScriptOrModule::GetResourceName ( )

The name that was passed by the embedder as ResourceName to the ScriptOrigin. This can be either a v8::String or v8::Undefined.

Definition at line 2128 of file api.cc.


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