(code)
| 117 | } |
| 118 | |
| 119 | function getParseTime(code) { |
| 120 | // const context = vm.createContext(); |
| 121 | // const script = new vm.Script(code); |
| 122 | |
| 123 | const parseStart = process.hrtime(); |
| 124 | new Function(code + ";void(" + Math.random() + ");"); |
| 125 | // script.runInContext(context); |
| 126 | const diff = process.hrtime(parseStart); |
| 127 | return diff[1] / 1000000; |
| 128 | } |
| 129 | |
| 130 | function isDir(p) { |
| 131 | try { |