Re: [heycam/webidl] Need pattern for feature detecting dictionary members (#107)

> OK, but what happens in a UA that doesn't support that dictionary member?

@bzbarsky Good point. Though in the case of [share()](https://wicg.github.io/web-share/#share-method) at least, an invalid `url` should do it:
```js
var supportsFiles = false;
try {
  navigator.share(Object.defineProperty({url: ' '}, 'capture', {get: function () {
    supportsFiles = true;
  }}));
} catch(e) {}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/107#issuecomment-425557821

Received on Friday, 28 September 2018 20:33:45 UTC