function(content){
        // emulate NEJ patch env
        var ret = {},
            sandbox = {
                NEJ:{
                    patch:_doPatch.bind(ret)
                }
            };
        // eval content for nej patch check
        try{
            //eval(util.format('(%s)();',content));
            vm.createContext(sandbox);
            vm.runInContext(util.format('(%s)();',content),sandbox);
        }catch(ex){
            // ignore
        }
        return ret.patches;
    }
function(content){
        
        var ret = {},
            sandbox = {
                NEJ:{
                    patch:_doPatch.bind(ret)
                }
            };
        
        try{
            
            vm.createContext(sandbox);
            vm.runInContext(util.format('(%s)();',content),sandbox);
        }catch(ex){
            
        }
        return ret.patches;
    }
function ( content ) { // emulate NEJ patch env var ret = { } , sandbox = { NEJ : { patch : _doPatch . bind ( ret ) } } ; // eval content for nej patch check try { //eval(util.format('(%s)();',content)); vm . createContext ( sandbox ) ; vm . runInContext ( util . format ( '(%s)();' , content ) , sandbox ) ; } catch ( ex ) { // ignore } return ret . patches ; }
eval content to dump nej patch
eval content to dump nej patch