From 5b4c5c4118afa7fa291bf79687309f54421388d2 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 21 Oct 2023 13:57:02 +0200 Subject: [PATCH] [Web] Fix closure compiler builds using BIGINT When using proxy_to_pthread we add BIGINT support (to support exchanging 64 bits integers between wasm and JS). Bigint though, is part of ECMAScript 2020, and the closure compiler was using ECMAScript 6 instead. This commit update the CC configuration to use ECMAScript 2020 instead. (cherry picked from commit e9df955e39f3d8cce305afa5ab371cacd0db24fd) --- platform/web/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/web/detect.py b/platform/web/detect.py index b64c5a40e78..f0e755049ad 100644 --- a/platform/web/detect.py +++ b/platform/web/detect.py @@ -158,7 +158,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++"