function isAllowedToCall(aConfinement, aModule) {
    const notBlackListed = !aConfinement.blackList.has(aModule);
    const isBuiltInModule = NodeModule.builtinModules.includes(aModule);
    const allowBuiltIns = aConfinement.allowBuiltIns;

    return aConfinement.whiteList.has(aModule) ||
        !isBuiltInModule && notBlackListed ||
        allowBuiltIns && isBuiltInModule && notBlackListed;
}
/**
 * This function decides, whether given module is allowed to get called with given confinement
 * @param {ModuleConfinement} aConfinement
 * @param {string} aModule
 * @return {boolean}
 */
This function decides, whether given module is allowed to get called with given confinement
@param {ModuleConfinement} aConfinement
@param {string} aModule
@return {boolean}
This function decides whether given module is allowed to get called with given confinement @param { ModuleConfinement } aConfinement @param { string } aModule @return { boolean }
function isAllowedToCall(aConfinement, aModule) {
    const notBlackListed = !aConfinement.blackList.has(aModule);
    const isBuiltInModule = NodeModule.builtinModules.includes(aModule);
    const allowBuiltIns = aConfinement.allowBuiltIns;
    return aConfinement.whiteList.has(aModule) ||
        !isBuiltInModule && notBlackListed ||
        allowBuiltIns && isBuiltInModule && notBlackListed;
}
function isAllowedToCall ( aConfinement , aModule ) { const notBlackListed = ! aConfinement . blackList . has ( aModule ) ; const isBuiltInModule = NodeModule . builtinModules . includes ( aModule ) ; const allowBuiltIns = aConfinement . allowBuiltIns ; return aConfinement . whiteList . has ( aModule ) || ! isBuiltInModule && notBlackListed || allowBuiltIns && isBuiltInModule && notBlackListed ; }
This function decides, whether given module is allowed to get called with given confinement
 @param {ModuleConfinement} aConfinement
 @param {string} aModule
 @return {boolean}
This function decides whether given module is allowed to get called with given confinement @param { ModuleConfinement } aConfinement @param { string } aModule @return { boolean }