Skip to main content

import_meta_object_callback

Function import_meta_object_callback 

Source
pub extern "C" fn import_meta_object_callback(
    context: Local<'_, Context>,
    module: Local<'_, Module>,
    meta: Local<'_, Object>,
)
Expand description

Callback invoked by V8 when import.meta is accessed in an ES module. Sets import.meta.url to a file:// URL derived from the module’s resource name.