diff --git a/platform/web/detect.py b/platform/web/detect.py index d3068698890..887a9e14b97 100644 --- a/platform/web/detect.py +++ b/platform/web/detect.py @@ -162,7 +162,7 @@ def configure(env: "Environment"): 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_2020" env["CC"] = "emcc" env["CXX"] = "em++"