From dce8d2968a8e7300751086489c7d926b80225a10 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) {