()
| 7 | const nodeVersion = process.versions.node.split('.')[0]; |
| 8 | let asyncHooks; |
| 9 | function checkAsyncHooks () { |
| 10 | if (nodeVersion >= 8) { |
| 11 | if (asyncHooks === undefined) { |
| 12 | asyncHooks = require('async_hooks'); |
| 13 | } |
| 14 | return true; |
| 15 | } |
| 16 | return false; |
| 17 | } |
| 18 | |
| 19 | module.exports = common.runTest(test); |
| 20 |