Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #40 from minggangw/XWALK-6931
Browse files Browse the repository at this point in the history
[IAP]Throw an error when productIds is undefined
  • Loading branch information
Halton Huo committed May 25, 2016
2 parents 43b0556 + 338c9de commit 68313c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iap/iap.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ exports.queryProductsInfo = function(productIds) {
if (!g_initialized) {
throw new DOMError("InvalidStateError");
}
if (typeof(productIds) === "undefined")
throw new DOMError("InvalidAccessError");
var requestId = createAsyncRequest(resolve, reject);
sendAsycRequest("queryProductsInfo", requestId, productIds);
});
Expand Down

0 comments on commit 68313c2

Please sign in to comment.