pub unsafe extern "system" fn JsInitializeModuleRecord(
referencingModule: JsModuleRecord,
normalizedSpecifier: JsValueRef,
moduleRecord: *mut JsModuleRecord
) -> JsErrorCode
Initialize a ModuleRecord from host
Bootstrap the module loading process by creating a new module record.
The referencingModule as in HostResolveImportedModule (15.2.1.17). nullptr if this is the top level module.
The host normalized specifier. This is the key to a unique ModuleRecord.
The new ModuleRecord created. The host should not try to call this API twice with the same normalizedSpecifier.
chakra will return an existing ModuleRecord if the specifier was passed in before.
The code JsNoError if the operation succeeded, a failure code otherwise.