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 2016/01/06 16:43:29 UTC
[2/4] git commit: [flex-falcon] [refs/heads/develop] - Worked around
some issues with es3.js provided by closure-compiler
Worked around some issues with es3.js provided by closure-compiler
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/c27be44c
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/c27be44c
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/c27be44c
Branch: refs/heads/develop
Commit: c27be44c3c4fb83b5cbe11fbc8a2e732be1041d9
Parents: 168c105
Author: Andy Dufilie <an...@iweave.com>
Authored: Tue Jan 5 10:06:42 2016 -0500
Committer: Andy Dufilie <an...@iweave.com>
Committed: Wed Jan 6 09:21:35 2016 -0500
----------------------------------------------------------------------
build.xml | 3 +++
externs/js/missing.js | 11 +++++++++++
2 files changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c27be44c/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index f87c972..b751c71 100644
--- a/build.xml
+++ b/build.xml
@@ -660,6 +660,9 @@
<replaceregexp file="${basedir}/externs/js/externs/svg.js" match="@type \{function\(new:.*" replace="" flags="g" />
<replaceregexp file="${basedir}/externs/js/externs/svg.js" match="Window\.prototype\..*" replace="" flags="g" />
<replace file="${basedir}/externs/js/externs/svg.js" token="EventListener|(function(Event)" value="EventListener|(function(!Event)" />
+ <replaceregexp file="${basedir}/externs/js/externs/es3.js" match="(The constructor of the current object(?:(?!\*/).)*?)@type \{Function\}((?:(?!\*/).)*?\*/[\r\n]+Object\.prototype\.constructor)([^;]*?);" replace="\1@type {Class}\2;" flags="s" />
+ <replaceregexp file="${basedir}/externs/js/externs/es3.js" match="(Transposes the elements of an array in place(?:(?!\*/).)*?[\r\n]+ \*)([\r\n]+)( \* @this)" replace="\1\2 * @return {!Array<?>}\2\3" flags="s" />
+ <replaceregexp file="${basedir}/externs/js/externs/es3.js" match="(Sorts the elements of an array in place(?:(?!\*/).)*?[\r\n]+ \*)([\r\n]+)( \* @param)" replace="\1\2 * @return {!Array<?>}\2\3" flags="s" />
<java jar="${basedir}/compiler/generated/dist/sdk/lib/falcon-compc.jar" fork="true"
failonerror="true">
<arg value="+flexlib=externs" />
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c27be44c/externs/js/missing.js
----------------------------------------------------------------------
diff --git a/externs/js/missing.js b/externs/js/missing.js
index 0b1ebcc..594bace 100644
--- a/externs/js/missing.js
+++ b/externs/js/missing.js
@@ -98,7 +98,18 @@ int.prototype.toString = function(opt_radix) {}
/**
+ * @type {Object}
+ */
+Object.prototype;
+
+/**
+ * @type {Object}
+ */
+Object.prototype.prototype;
+
+/**
* @constructor
+ * @extends {Function}
*/
function Class() {}