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

> Ouch, if that can be arbitrary side effects then I'd rather avoid it.

Yeah, consider

```js
const shareOptions = {
  get title() {
    console.log("foo");
    return "title";
  }
};

if (navigator.share.supports(shareOptions)) { // will log
  navigator.share(shareOptions); // will log again
}
```

-- 
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-303923428

Received on Thursday, 25 May 2017 05:05:17 UTC