From aec4b295e4087101f09eaaa931c9fefcacdc36bd Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 25 Apr 2021 10:26:42 +0200 Subject: [PATCH] tools: fix doc generation when version info is not available Fixes: https://github.com/nodejs/node/issues/38391 PR-URL: https://github.com/nodejs/node/pull/38398 Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Darshan Sen --- tools/doc/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/doc/generate.js b/tools/doc/generate.js index f49acb6207c9b4..d2f3aea27f25a4 100644 --- a/tools/doc/generate.js +++ b/tools/doc/generate.js @@ -43,7 +43,7 @@ let filename = null; let nodeVersion = null; let outputDir = null; let apilinks = {}; -let versions = {}; +let versions = []; async function main() { for (const arg of args) {