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:24 UTC
[royale-compiler] 05/12: playerglobalc: some more constructors that
need parameters typed as any
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 cbeda507779a82f304a1ded3bc57ddbbd5a7cf88
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Tue Mar 16 10:54:10 2021 -0700
playerglobalc: some more constructors that need parameters typed as any
---
.../main/java/org/apache/royale/compiler/clients/PLAYERGLOBALC.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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 dd9ae50..6948f41 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
@@ -65,8 +65,9 @@ class PLAYERGLOBALC implements FlexTool {
// Object's prototype.
private static final List<String> OBJECT_PROTOTYPE_METHODS = Arrays.asList("hasOwnProperty", "isPrototypeOf",
"propertyIsEnumerable", "setPropertyIsEnumerable", "toString", "toLocaleString", "valueOf");
- private static final List<String> ANY_CONSTRUCTORS = Arrays.asList("Boolean", "Date", "int", "Number", "RegExp",
- "String", "uint", "XML", "XMLList");
+ private static final List<String> ANY_CONSTRUCTORS = Arrays.asList("ArgumentError", "Boolean", "Date",
+ "DefinitionError", "Error", "EvalError", "int", "Number", "RangeError", "ReferenceError", "RegExp",
+ "SecurityError", "String", "SyntaxError", "TypeError", "uint", "URIError", "VerifyError", "XML", "XMLList");
private static final Map<String, String> GLOBAL_CONSTANTS = new HashMap<String, String>();
{
GLOBAL_CONSTANTS.put("Infinity", "1 / 0");