You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2021/03/16 21:07:26 UTC
[royale-compiler] 07/12: playerglobalc: Array.splice() should be a
...rest method
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit a426d80979d3422f03807963236fce4142b6f96d
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Tue Mar 16 11:59:34 2021 -0700
playerglobalc: Array.splice() should be a ...rest method
---
.../src/main/java/org/apache/royale/compiler/clients/PLAYERGLOBALC.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/compiler-playerglobalc/src/main/java/org/apache/royale/compiler/clients/PLAYERGLOBALC.java b/compiler-playerglobalc/src/main/java/org/apache/royale/compiler/clients/PLAYERGLOBALC.java
index 885d957..6a3cfa5 100644
--- a/compiler-playerglobalc/src/main/java/org/apache/royale/compiler/clients/PLAYERGLOBALC.java
+++ b/compiler-playerglobalc/src/main/java/org/apache/royale/compiler/clients/PLAYERGLOBALC.java
@@ -76,6 +76,7 @@ class PLAYERGLOBALC implements FlexTool {
}
private static final Map<String, List<String>> REST_METHODS = new HashMap<String, List<String>>();
{
+ REST_METHODS.put("Array", Arrays.asList("splice"));
REST_METHODS.put("__AS3__.vec.Vector$object", Arrays.asList("sort"));
REST_METHODS.put("__AS3__.vec.Vector$double", Arrays.asList("sort"));
REST_METHODS.put("__AS3__.vec.Vector$int", Arrays.asList("sort"));