From e468759c7dc21b4706a9efae9eb3ed25bc076c11 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Tue, 7 Jan 2020 22:36:40 -0500 Subject: [PATCH] src: fix -Wbraced-scalar-init warning PR-URL: https://github.com/nodejs/node/pull/31254 Reviewed-By: Richard Lau Reviewed-By: Anna Henningsen Reviewed-By: David Carlier Reviewed-By: Jiawen Geng Reviewed-By: Rich Trott Reviewed-By: James M Snell --- src/node_options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_options.cc b/src/node_options.cc index eb3cb58ed5d..8c4ecc4ec44 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -325,7 +325,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { &EnvironmentOptions::userland_loader, kAllowedInEnvironment); AddAlias("--loader", "--experimental-loader"); - AddAlias("--experimental-modules", { "--experimental-conditional-exports" }); + AddAlias("--experimental-modules", "--experimental-conditional-exports"); AddOption("--experimental-conditional-exports", "experimental support for conditional exports targets", &EnvironmentOptions::experimental_conditional_exports,