Predeclared in AUXILIARY

Functions

__access_export__(exports, lookup_name) → {value}

Searches for the specified name in the data structure of exported names. The data structure is a pair where the head element is the default export and the tail element is a list of pairs where each pair is a mapping from the exported name to the value being exported. If the lookup name is "default", the default export is returned instead of a named export. If the name does not exist, undefined is returned.
Parameters:
Name Type Description
exports pair The data structure of exported values
lookup_name string Name to import
Returns:
The value corresponding to the imported name
Type
value

__access_named_export__(named_exports, lookup_name) → {value}

Searches for the specified name in the data structure of exported names. The data structure is a list of pairs where each pair is a mapping from the exported name to the value being exported. If the name does not exist, undefined is returned.
Parameters:
Name Type Description
named_exports list The data structure of exported names
lookup_name string Name to import
Returns:
The value corresponding to the imported name
Type
value