mirror of
https://github.com/eggjs/egg.git
synced 2024-12-04 07:14:30 +00:00
8 lines
195 B
JavaScript
8 lines
195 B
JavaScript
'use strict';
|
|
|
|
const nodeVersion = Number(process.version.match(/^v(\d+\.\d+)\./)[1]);
|
|
// only node >= 7.6 support async function without flags
|
|
if (nodeVersion >= 7.6) {
|
|
require('./_async');
|
|
}
|