浏览代码

[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.
Fabio Alessandrelli 2 年之前
父节点
当前提交
e9df955e39
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/web/detect.py

+ 1 - 1
platform/web/detect.py

@@ -162,7 +162,7 @@ def configure(env: "Environment"):
     env.AddMethod(create_template_zip, "CreateTemplateZip")
     env.AddMethod(create_template_zip, "CreateTemplateZip")
 
 
     # Closure compiler extern and support for ecmascript specs (const, let, etc).
     # 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["CC"] = "emcc"
     env["CXX"] = "em++"
     env["CXX"] = "em++"