You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2022/01/12 07:08:13 UTC

[royale-compiler] 04/06: add option to prevent renaming some object keys

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch ReleaseModules
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit b86268705764d21b4d4e465377f9ab7f43e47d9c
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jan 11 00:51:31 2022 -0800

    add option to prevent renaming some object keys
---
 .../internal/driver/js/goog/JSGoogConfiguration.java  | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/goog/JSGoogConfiguration.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/goog/JSGoogConfiguration.java
index 009ea52..1ef218c 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/goog/JSGoogConfiguration.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/driver/js/goog/JSGoogConfiguration.java
@@ -884,6 +884,25 @@ public class JSGoogConfiguration extends JSConfiguration
 
     
     //
+    // 'prevent-rename-object-keys'
+    //
+
+    private String preventRenameObjectKeys = null;
+
+    public String getPreventRenameObjectKeys()
+    {
+        return preventRenameObjectKeys;
+    }
+
+    @Config
+    @Mapping("prevent-rename-object-keys")
+    public void setPreventRenameObjectKeys(ConfigurationValue cv, String value)
+            throws ConfigurationException
+    {
+    	preventRenameObjectKeys = value;
+    }
+
+    //
     // 'allow-dynamic-bindings'
     //