Re: [w3c/browser-payment-api] Reject acceptedPromise if converting method data fails (#536)

@madmath, so close - but I need the to know what happens if, in pr.js, you change `supportedInstruments` to the following:

```js
  var supportedInstruments = [{
    supportedMethods: [
      'basic-card',
    ],
    data: {
      supportedNetworks: ['hooba-dooba'],
      supportedTypes: ["this should throw", "credit"],
    }
  }];
```

And/or...

```js
  var supportedInstruments = [{
    supportedMethods: [
      'basic-card',
    ],
    data: {
      supportedNetworks: {"this-should-throw": ['hooba-dooba']},
      supportedTypes: ["credit"],
    }
  }];
```

And 

```JS
  var supportedInstruments = [{
    supportedMethods: [
      'basic-card',
    ],
    data: {
      supportedNetworks: "this will throw",
      supportedTypes: "so should this",
    },
  }];
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/pull/536#issuecomment-306378055

Received on Tuesday, 6 June 2017 04:23:10 UTC