mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Fix Node.js version detection
Original detection just picked v8 and v9
This commit is contained in:
parent
4a7e1b3b06
commit
49afdb5751
@ -115,7 +115,7 @@ module.exports = class ServerlessSpec extends Spec {
|
||||
// Safe to ignore
|
||||
}
|
||||
|
||||
if (process.version[1] < 8) return; // Async leaks detector is not reliable in Node.js v6
|
||||
if (process.version.match(/\d+/)[0] < 8) return; // Async leaks detector is not reliable in Node.js v6
|
||||
|
||||
// Async leaks detection
|
||||
setTimeout(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user