HostInitializeImportMetaObjectCallback

Type Alias HostInitializeImportMetaObjectCallback 

Source
pub type HostInitializeImportMetaObjectCallback = unsafe extern "C" fn(Local<'_, Context>, Local<'_, Module>, Local<'_, Object>);
Expand description

HostInitializeImportMetaObjectCallback is called the first time import.meta is accessed for a module. Subsequent access will reuse the same value.

The method combines two implementation-defined abstract operations into one: HostGetImportMetaProperties and HostFinalizeImportMeta.

The embedder should use v8::Object::CreateDataProperty to add properties on the meta object.