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


The following commit(s) were added to refs/heads/develop by this push:
     new fa0166c  playerglobal: some optional arguments missing on Number 
methods
fa0166c is described below

commit fa0166cb70591196c87bc5ac350bbbad7e075467
Author: Josh Tynjala <[email protected]>
AuthorDate: Tue Mar 23 15:01:25 2021 -0700

    playerglobal: some optional arguments missing on Number methods
---
 .../src/main/java/org/apache/royale/compiler/clients/PLAYERGLOBALC.java | 2 ++
 1 file changed, 2 insertions(+)

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 71c4613..523a4a0 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
@@ -94,6 +94,7 @@ class PLAYERGLOBALC implements FlexTool {
                                Arrays.asList("setFullYear", "setMonth", 
"setDate", "setHours", "setMinutes", "setSeconds",
                                                "setMilliseconds", 
"setUTCFullYear", "setUTCMonth", "setUTCDate", "setUTCHours",
                                                "setUTCMinutes", 
"setUTCSeconds", "setUTCMilliseconds", "setTime"));
+               NULL_DEFAULT_METHODS.put("Number", 
Arrays.asList("toExponential", "toFixed", "toPrecision"));
                NULL_DEFAULT_METHODS.put("Object", 
Arrays.asList("hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable"));
        }
        private static final Map<String, List<String>> ANY_METHODS = new 
HashMap<String, List<String>>();
@@ -102,6 +103,7 @@ class PLAYERGLOBALC implements FlexTool {
                                Arrays.asList("setFullYear", "setMonth", 
"setDate", "setHours", "setMinutes", "setSeconds",
                                                "setMilliseconds", 
"setUTCFullYear", "setUTCMonth", "setUTCDate", "setUTCHours",
                                                "setUTCMinutes", 
"setUTCSeconds", "setUTCMilliseconds", "setTime", "UTC", "parse"));
+               ANY_METHODS.put("Number", Arrays.asList("toExponential", 
"toFixed", "toPrecision", "toString"));
                ANY_METHODS.put("Object", Arrays.asList("hasOwnProperty", 
"isPrototypeOf", "propertyIsEnumerable"));
                ANY_METHODS.put("XML", Arrays.asList("addNamespace", 
"appendChild", "attribute", "child", "contains",
                                "descendants", "elements", "insertChildAfter", 
"insertChildBefore", "namespace", "prependChild",

Reply via email to