From 246b85c686a5f217a5a523222d0154f07594db7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 6 Feb 2024 09:19:07 +0100 Subject: [PATCH] Web: Bump closure compiler spec to ECMASCRIPT_2021 Fixes #88008. (cherry picked from commit d29b0d90e0d735eee860b977c57cb75423d7a9ba) --- platform/javascript/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index c7235118039..68f47b40390 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -151,7 +151,7 @@ def configure(env): env.AddMethod(create_template_zip, "CreateTemplateZip") # Closure compiler extern and support for ecmascript specs (const, let, etc). - env["ENV"]["EMCC_CLOSURE_ARGS"] = "--language_in ECMASCRIPT6" + env["ENV"]["EMCC_CLOSURE_ARGS"] = "--language_in ECMASCRIPT_2021" env["CC"] = "emcc" env["CXX"] = "em++"