Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20EFEE119 for ; Wed, 20 Feb 2013 22:16:55 +0000 (UTC) Received: (qmail 78694 invoked by uid 500); 20 Feb 2013 22:16:55 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 78636 invoked by uid 500); 20 Feb 2013 22:16:55 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 78629 invoked by uid 99); 20 Feb 2013 22:16:55 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2013 22:16:55 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id BB7D182D729; Wed, 20 Feb 2013 22:16:54 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mmocny@apache.org To: commits@cordova.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [1/2] js commit: [iOS] Fixing regression in exec [CB-2503] Message-Id: <20130220221654.BB7D182D729@tyr.zones.apache.org> Date: Wed, 20 Feb 2013 22:16:54 +0000 (UTC) [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 Authored: Wed Feb 20 16:52:44 2013 -0500 Committer: Michal Mocny 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)); };