flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [39/50] [abbrv] flex-typedefs git commit: fix patch for js
Date Sun, 17 Jul 2016 16:50:11 GMT
fix patch for js


Project: http://git-wip-us.apache.org/repos/asf/flex-typedefs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-typedefs/commit/5ed32a57
Tree: http://git-wip-us.apache.org/repos/asf/flex-typedefs/tree/5ed32a57
Diff: http://git-wip-us.apache.org/repos/asf/flex-typedefs/diff/5ed32a57

Branch: refs/heads/master
Commit: 5ed32a572609c964b1a175c7da76ac322b31f30d
Parents: 03a3ff3
Author: Alex Harui <aharui@apache.org>
Authored: Thu Jun 2 12:37:27 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Jun 2 12:48:44 2016 -0700

----------------------------------------------------------------------
 js/build.xml               |  2 +-
 js/src/main/patch/js.patch | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-typedefs/blob/5ed32a57/js/build.xml
----------------------------------------------------------------------
diff --git a/js/build.xml b/js/build.xml
index e66ac3a..b2fdb56 100644
--- a/js/build.xml
+++ b/js/build.xml
@@ -36,7 +36,7 @@
         <get src="https://closureidl.googlecode.com/files/svg.js" dest="${basedir}/target/downloads/svg.js"/>
     </target>
     
-    <target name="make_patch" >
+    <target name="make_patch" depends="download">
         <mkdir dir="${basedir}/target/reference" />
         <copy todir="${basedir}/target/reference">
             <fileset dir="${basedir}/target/downloads/" />

http://git-wip-us.apache.org/repos/asf/flex-typedefs/blob/5ed32a57/js/src/main/patch/js.patch
----------------------------------------------------------------------
diff --git a/js/src/main/patch/js.patch b/js/src/main/patch/js.patch
index 4150a65..613cefa 100644
--- a/js/src/main/patch/js.patch
+++ b/js/src/main/patch/js.patch
@@ -1,3 +1,36 @@
+diff --git a/externs/js/target/downloads/es3.js b/externs/js/target/downloads/es3.js
+index fa5e5a6..6c5e3e7 100644
+--- a/externs/js/target/downloads/es3.js
++++ b/externs/js/target/downloads/es3.js
+@@ -201,10 +201,10 @@ function Object(opt_value) {}
+ 
+ /**
+  * The constructor of the current object.
+- * @type {Function}
++ * @type {Class}
+  * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor
+  */
+-Object.prototype.constructor = function() {};
++Object.prototype.constructor;
+ 
+ /**
+  * Binds an object's property to a function to be called when that property is
+@@ -502,6 +502,7 @@ Array.prototype.push = function(var_args) {};
+  * Transposes the elements of an array in place: the first array element becomes the
+  * last and the last becomes the first.
+  *
++ * @return {!Array<?>}
+  * @this {{length: number}}
+  * @modifies {this}
+  * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse
+@@ -538,6 +539,7 @@ Array.prototype.slice = function(opt_begin, opt_end) {};
+ /**
+  * Sorts the elements of an array in place.
+  *
++ * @return {!Array<?>}
+  * @param {function(T,T):number=} opt_compareFunction Specifies a function that
+  *     defines the sort order.
+  * @this {{length: number}|Array<T>}
 diff --git a/externs/js/target/downloads/svg.js b/externs/js/target/downloads/svg.js
 index a13180c..48115b3 100644
 --- a/externs/js/target/downloads/svg.js


Mime
View raw message