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 c9a07ae  playerglobal-source-gen: radix parameter of int/uint has 
default value, like Number
c9a07ae is described below

commit c9a07aed3988148ea0f8dd7415c9c5d9b72fec8f
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon Feb 22 13:47:57 2021 -0800

    playerglobal-source-gen: radix parameter of int/uint has default value, 
like Number
---
 .../java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java
 
b/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java
index 0dca4f1..4309623 100644
--- 
a/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java
+++ 
b/playerglobal-source-gen/src/main/java/org/apache/royale/playerglobal/PlayerglobalSourceGen.java
@@ -1055,6 +1055,9 @@ class PlayerglobalSourceGen {
                                        if (apiDataElement != null) {
                                                
writeVariableOrParameterValue(apiDataElement, paramType, functionBuilder);
                                        }
+                                       else if(("int".equals(contextClassName) 
|| "uint".equals(contextClassName)) && "toString".equals(contextFunctionName)) {
+                                               functionBuilder.append(" = 10");
+                                       }
                                }
                        }
                }

Reply via email to