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