From 944bba9e9b18b2d897f97741d533e0c75e0cc97e Mon Sep 17 00:00:00 2001 From: Marouane Benalla Date: Wed, 7 Feb 2024 07:52:31 +0100 Subject: [PATCH] fix(js_generator): add missing full package name in strict mode --- generator/js_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/js_generator.cc b/generator/js_generator.cc index cb14344..30cacdc 100644 --- a/generator/js_generator.cc +++ b/generator/js_generator.cc @@ -3692,7 +3692,7 @@ void Generator::GenerateFile(const GeneratorOptions& options, printer->Print("goog.object.extend(exports, $package$);\n", "package", GetNamespace(options, file)); } else if (options.import_style == GeneratorOptions::kImportCommonJsStrict) { - printer->Print("goog.object.extend(exports, proto);\n", "package", + printer->Print("goog.object.extend(exports, $package$);\n", "package", GetNamespace(options, file)); }