You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/06/26 16:12:48 UTC
[26/36] flex-typedefs git commit: add Error.prototype.toString().
Other classes may need a toString() as well
add Error.prototype.toString(). Other classes may need a toString() as well
Project: http://git-wip-us.apache.org/repos/asf/flex-typedefs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-typedefs/commit/fb2509b3
Tree: http://git-wip-us.apache.org/repos/asf/flex-typedefs/tree/fb2509b3
Diff: http://git-wip-us.apache.org/repos/asf/flex-typedefs/diff/fb2509b3
Branch: refs/heads/master
Commit: fb2509b33d32ff568f637d36842dff2351afee79
Parents: ede60db
Author: Alex Harui <ah...@apache.org>
Authored: Thu Apr 20 17:13:13 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Apr 20 17:13:47 2017 -0700
----------------------------------------------------------------------
js/src/main/config/externc-config.xml | 8 ++++++++
js/src/main/javascript/missing.js | 22 ++++++++++++++++++++++
2 files changed, 30 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-typedefs/blob/fb2509b3/js/src/main/config/externc-config.xml
----------------------------------------------------------------------
diff --git a/js/src/main/config/externc-config.xml b/js/src/main/config/externc-config.xml
index f3b3794..5935881 100644
--- a/js/src/main/config/externc-config.xml
+++ b/js/src/main/config/externc-config.xml
@@ -135,8 +135,12 @@
<class-exclude>
<class>controlRange</class>
+ <class>ITemplateArray</class>
</class-exclude>
+ <!-- Object.toString() is excluded by the ExternC compiler. Otherwise
+ int.toString(radix) becomes an illegal override. Other classes
+ need to have their toString() supplied by missing.js -->
<exclude>
<class>Array</class>
<name>toSource</name>
@@ -149,6 +153,10 @@
<class>String</class>
<name>valueOf</name>
</exclude>
+ <exclude>
+ <class>String</class>
+ <name>raw</name>
+ </exclude>
<!-- SVG -->
<exclude><class>SVGStylable</class><name>className</name></exclude>
<exclude><class>SVGStylable</class><name>style</name></exclude>
http://git-wip-us.apache.org/repos/asf/flex-typedefs/blob/fb2509b3/js/src/main/javascript/missing.js
----------------------------------------------------------------------
diff --git a/js/src/main/javascript/missing.js b/js/src/main/javascript/missing.js
index 93dc092..23d7c68 100644
--- a/js/src/main/javascript/missing.js
+++ b/js/src/main/javascript/missing.js
@@ -262,3 +262,25 @@ uint.MAX_VALUE;
* @const
*/
uint.MIN_VALUE;
+
+
+/**
+8 @type {!Object}
+* @const
+*/
+var dialogPolyfill;;
+
+/**
+* @param {!Element} element to upgrade, if necessary
+*/
+dialogPolyfill.registerDialog = function(element) {};
+
+/**
+ * Many top-level classes will need a toString() defined.
+ * Object.toString() is excluded by the ExternC compiler
+ * so int.toString(radix) doesn't return an illegal override
+ * error.
+ * @return {string} The result.
+ */
+Error.prototype.toString = function() {}
+