function installTrapFunctionAddon() {
    global.Function = new Proxy(global.Function, {
        construct() {
            throw new Error('NodeModuleConfinement: Found call of "new Function()", which is not allowed.');
        },
        apply() {
            throw new Error('NodeModuleConfinement: Found call of "Function()", which is not allowed.');
        },
    });
}
/**
 * Installs a trap for global.Function, to prevent usage of that
 */
Installs a trap for global.Function, to prevent usage of that
Installs a trap for global . Function to prevent usage of that
function installTrapFunctionAddon() {
    global.Function = new Proxy(global.Function, {
        construct() {
            throw new Error('NodeModuleConfinement: Found call of "new Function()", which is not allowed.');
        },
        apply() {
            throw new Error('NodeModuleConfinement: Found call of "Function()", which is not allowed.');
        },
    });
}
function installTrapFunctionAddon ( ) { global . Function = new Proxy ( global . Function , { construct ( ) { throw new Error ( 'NodeModuleConfinement: Found call of "new Function()", which is not allowed.' ) ; } , apply ( ) { throw new Error ( 'NodeModuleConfinement: Found call of "Function()", which is not allowed.' ) ; } , } ) ; }
Installs a trap for global.Function, to prevent usage of that
Installs a trap for global . Function to prevent usage of that