cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject [1/2] js commit: [iOS] Fixing regression in exec [CB-2503]
Date Wed, 20 Feb 2013 22:16:54 GMT
[iOS] Fixing regression in exec [CB-2503]


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/64a70f9b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/64a70f9b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/64a70f9b

Branch: refs/heads/master
Commit: 64a70f9bd62e37088a6d6161234b641577c20b31
Parents: 521bbd6
Author: Michal Mocny <mmocny@gmail.com>
Authored: Wed Feb 20 16:52:44 2013 -0500
Committer: Michal Mocny <mmocny@gmail.com>
Committed: Wed Feb 20 16:52:44 2013 -0500

----------------------------------------------------------------------
 lib/ios/exec.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/64a70f9b/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index 8ad37d1..58e73d2 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -65,6 +65,9 @@ function shouldBundleCommandJson() {
 }
 
 function massageArgsJsToNative(args) {
+    if (!args || utils.typeName(args) != 'Array') {
+       return args;
+    }
     var encodeArrayBufferAs8bitString = function(ab) {
         return String.fromCharCode.apply(null, new Uint8Array(ab));
     };


Mime
View raw message