Re: [whatwg/streams] Performance improvements (#490)

> There is also a difference between O[p] = v and defineProperty; the former triggers setters.

Right. However, these helpers are exclusively used on objects that are freshly constructed in the library, and thus do not have any setters.

I understand and sympathize with your concern about maintaining a more direct mapping from spec to code. Would a comment pointing out the equivalent `Object.defineProperty` call serve this purpose as well?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/490#issuecomment-237270200

Received on Wednesday, 3 August 2016 16:56:20 UTC